|
|
@@ -128,8 +128,9 @@ use common\helpers\GlobalParam; |
|
|
|
<?= $form->field($model, 'photo')->fileInput() ?> |
|
|
|
<?php |
|
|
|
if (strlen($model->photo)) { |
|
|
|
$url = Yii::$app->urlManagerProducer->getHostInfo() . '/' . Yii::$app->urlManagerProducer->baseUrl; |
|
|
|
echo '<img class="photo-product" src="' . $url . '/uploads/' . $model->photo . '" width="200px" /><br />'; |
|
|
|
$url = Yii::$app->urlManagerProducer->getHostInfo() . '/' . Yii::$app->urlManagerProducer->baseUrl . '/uploads/' . $model->photo; |
|
|
|
$url = str_replace('//uploads','/uploads', $url) ; |
|
|
|
echo '<img class="photo-product" src="' . $url . '" width="200px" /><br />'; |
|
|
|
echo '<input type="checkbox" name="delete_photo" id="delete_photo" /> <label for="delete_photo">Supprimer la photo</label><br /><br />'; |
|
|
|
} |
|
|
|
?> |