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