Sfoglia il codice sorgente

Correction lien photo liste des produits

dev
parent
commit
5817d829dc
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      backend/views/product/index.php

+ 2
- 2
backend/views/product/index.php Vedi File

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

Loading…
Annulla
Salva