Browse Source

[backend] Correction lien photo producteur dans les paramètres

refactoring
Guillaume Bourgeois 5 years ago
parent
commit
c457a1ddfb
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      backend/views/producer/update.php

+ 1
- 2
backend/views/producer/update.php View File

@@ -85,8 +85,7 @@ $this->addBreadcrumb($this->getTitle()) ;
<?= $form->field($model, 'photo')->fileInput() ?>
<?php
if (strlen($model->photo)) {
$base_url = Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl ;
echo '<img src="'.$base_url.'uploads/' . $model->photo . '" width="400px" /><br />';
echo '<img src="'.Yii::$app->urlManagerProducer->getBaseUrl().'/uploads/' . $model->photo . '" width="400px" /><br />';
echo '<input type="checkbox" name="delete_photo" id="delete_photo" /> <label for="delete_photo">Supprimer la photo</label><br /><br />';
}
?>

Loading…
Cancel
Save