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)): ?>
Photo <?= Html::encode($producer->name) ?>
description)): ?>
description)); ?>

Points de vente

$dataProviderPointsSale, 'summary' => '', 'columns' => [ 'nom', 'localite', [ 'label' => 'Jours de livraison', 'value' => function($model) { return $model->getStrDeliveryDays() ; } ] ], ]); ?>

Produits

$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 '' ; } ], ], ]); ?>