|
|
@@ -24,6 +24,22 @@ $this->params['breadcrumbs'][] = $this->title; |
|
|
|
return '<a class="btn-order btn btn-default" href="javascript:void(0);"><span class="glyphicon glyphicon-resize-vertical"></span></a>' ; |
|
|
|
} |
|
|
|
], |
|
|
|
[ |
|
|
|
'attribute' => 'photo', |
|
|
|
'format' => 'raw', |
|
|
|
'headerOptions' => ['class' => 'td-photo'], |
|
|
|
'value' => function($model) { |
|
|
|
if(strlen($model->photo)) { |
|
|
|
if(Yii::$app->getRequest()->serverName == 'localhost') |
|
|
|
$url = '../../frontend/web/' ; |
|
|
|
else |
|
|
|
$url = 'http://www.laboiteapain.net/' ; |
|
|
|
|
|
|
|
return '<img class="photo-produit" src="'.$url.'uploads/'.$model->photo.'" />' ; |
|
|
|
} |
|
|
|
return '' ; |
|
|
|
} |
|
|
|
], |
|
|
|
'nom', |
|
|
|
'description', |
|
|
|
[ |