<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Vrac'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="produit-index"> <h1><?= Html::encode($this->title) ?> <?= Html::a('Ajouter', ['create'], ['class' => 'btn btn-success']) ?></h1> <?= GridView::widget([ 'dataProvider' => $dataProvider, 'columns' => [ //['class' => 'yii\grid\SerialColumn'], //'id', 'order', 'diminutif', 'nom', 'epuise', 'actif', //'illustration', // 'photo', // 'saison', // 'prix', // 'poids', ['class' => 'yii\grid\ActionColumn'], ], ]); ?> </div>