Ver código fonte

Correction lien photo liste des produits

dev
Guillaume Bourgeois 5 anos atrás
pai
commit
5817d829dc
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      backend/views/product/index.php

+ 2
- 2
backend/views/product/index.php Ver arquivo

@@ -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 '' ;
}

Carregando…
Cancelar
Salvar