Bläddra i källkod

Correction lien photo (paramètres du producteur)

dev
Guillaume Bourgeois 5 år sedan
förälder
incheckning
55c88b863d
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. +2
    -2
      backend/views/producer/update.php

+ 2
- 2
backend/views/producer/update.php Visa fil

@@ -76,8 +76,8 @@ $this->addBreadcrumb($this->getTitle()) ;
<?= $form->field($model, 'photo')->fileInput() ?>
<?php
if (strlen($model->photo)) {
$base_url = Yii::$app->urlManagerProducer->baseUrl ;
echo '<img src="'.$base_url.'/uploads/' . $model->photo . '" width="400px" /><br />';
$base_url = Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl ;
echo '<img src="'.$base_url.'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 />';
}
?>

Laddar…
Avbryt
Spara