Browse Source

Produits : correction lien photo

dev
Guillaume Bourgeois 5 years ago
parent
commit
ac134fde8c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/views/product/index.php

+ 1
- 1
backend/views/product/index.php View File

@@ -68,7 +68,7 @@ $this->addButton(['label' => '+', 'url' => 'product/create', 'class' => 'btn btn
'value' => function($model) {
if(strlen($model->photo)) {
$url = Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl ;
return '<img class="photo-product" src="'.$url.'uploads/'.$model->photo.'" />' ;
return '<img class="photo-product" src="'.$url.'/uploads/'.$model->photo.'" />' ;
}
return '' ;
}

Loading…
Cancel
Save