Quellcode durchsuchen

[producer] Correctif

dev
Guillaume vor 3 Jahren
Ursprung
Commit
e9c951367b
1 geänderte Dateien mit 10 neuen und 6 gelöschten Zeilen
  1. +10
    -6
      producer/views/site/index.php

+ 10
- 6
producer/views/site/index.php Datei anzeigen

@@ -194,18 +194,22 @@ $this->setPageTitle(Html::encode($producer->type.' à '.$producer->city)) ;
] ;
?>

<?= GridView::widget([
'dataProvider' => $dataProviderProducts,
'summary' => '',
'columns' => $columnsProducts
]); ?>
<?php if($dataProviderProducts->query->count()) : ?>
<?= GridView::widget([
'dataProvider' => $dataProviderProducts,
'summary' => '',
'columns' => $columnsProducts
]); ?>
<?php endif; ?>

<?php foreach($categories as $category): ?>
<h4><?= Html::encode($category->name) ?></h4>
<?php if($dataProviderProductsByCategories[$category->id]->query->count()): ?>
<h4><?= Html::encode($category->name) ?></h4>
<?= GridView::widget([
'dataProvider' => $dataProviderProductsByCategories[$category->id],
'summary' => '',
'columns' => $columnsProducts
]); ?>
<?php endif; ?>
<?php endforeach; ?>
</section>

Laden…
Abbrechen
Speichern