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