generateUrlParams(); $nameAttribute = $generator->getNameAttribute(); echo " use yii\helpers\Html; use indexWidgetType === 'grid' ? "yii\\grid\\GridView" : "yii\\widgets\\ListView" ?>; /** * @var yii\base\View $this * @var yii\data\ActiveDataProvider $dataProvider * @var searchModelClass, '\\') ?> $searchModel */ $this->title = 'modelClass))) ?>'; $this->params['breadcrumbs'][] = $this->title; ?>

Html::encode($this->title) ?>

indexWidgetType === 'grid' ? "// " : "") ?>echo $this->render('_search', ['model' => $searchModel]); ?>

Html::a('Create modelClass) ?>', ['create'], ['class' => 'btn btn-success']) ?>

indexWidgetType === 'grid'): ?> echo GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], getTableSchema()->columns as $column) { $format = $generator->generateColumnFormat($column); if (++$count < 6) { echo "\t\t\t'" . $column->name . ($format === 'text' ? "" : ":" . $format) . "',\n"; } else { echo "\t\t\t// '" . $column->name . ($format === 'text' ? "" : ":" . $format) . "',\n"; } } ?> ['class' => 'yii\grid\ActionColumn'], ], ]); ?> echo ListView::widget([ 'dataProvider' => $dataProvider, 'itemOptions' => ['class' => 'item'], 'itemView' => function ($model, $key, $index, $widget) { return Html::a(Html::encode($model->), ['view', ]); }, ]); ?>