context->getProducer() ; $this->setPageTitle(Html::encode($producer->type.' à '.$producer->city)) ; ?> description) || strlen($producer->photo)): ?> description) && strlen($producer->photo)) $colSize = 'col-md-6' ; else $colSize = 'col-md-12' ; ?> Passer une commande photo)): ?> description)): ?> = nl2br(Html::encode($producer->description)); ?> Points de vente = GridView::widget([ 'dataProvider' => $dataProviderPointsSale, 'summary' => '', 'columns' => [ 'name', 'locality', [ 'label' => 'Jours de livraison', 'value' => function($model) { return $model->getStrDeliveryDays() ; } ] ], ]); ?> Produits = GridView::widget([ 'dataProvider' => $dataProviderProducts, 'summary' => '', 'columns' => [ [ 'attribute' => 'photo', 'format' => 'raw', 'headerOptions' => ['class' => 'td-photo'], 'value' => function($model) { if(strlen($model->photo)) { return '' ; } return '' ; } ], 'name', 'description', [ 'attribute' => 'weight', 'value' => function($model) { if(strlen($model->weight)) { return $model->weight.'g' ; } return '' ; } ], ], ]); ?>