context->getProducer() ; $this->setPageTitle(Html::encode($producer->type.' à '.$producer->ville)) ; ?> description) || strlen($producer->photo)): ?> description) && strlen($producer->photo)) $col_size = 'col-md-6' ; else $col_size = 'col-md-12' ; ?> Passer une commande photo)): ?> description)): ?> = nl2br(Html::encode($producer->description)); ?> Points de vente = GridView::widget([ 'dataProvider' => $data_provider_points_vente, 'summary' => '', 'columns' => [ 'nom', 'localite', [ 'label' => 'Jours de livraison', 'value' => function($model) { return $model->strJoursLivraison() ; } ] ], ]); ?> Produits = GridView::widget([ 'dataProvider' => $data_provider_produits, 'summary' => '', 'columns' => [ [ 'attribute' => 'photo', 'format' => 'raw', 'headerOptions' => ['class' => 'td-photo'], 'value' => function($model) { if(strlen($model->photo)) { return '' ; } return '' ; } ], 'nom', 'description', [ 'attribute' => 'poids', 'value' => function($model) { if(strlen($model->poids)) { return $model->poids.'g' ; } return '' ; } ], ], ]); ?>