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

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

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

Html::a(generateString('Create ' . Inflector::camel2words(StringHelper::basename($generator->modelClass))) ?>, ['create'], ['class' => 'btn btn-success']) ?>

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