|
|
|
|
|
|
|
|
'value' => function($model) { |
|
|
'value' => function($model) { |
|
|
if(strlen($model->photo)) { |
|
|
if(strlen($model->photo)) { |
|
|
$url = Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl ; |
|
|
$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 '' ; |
|
|
return '' ; |
|
|
} |
|
|
} |