|  |  |  | @ -15,7 +15,7 @@ echo "<?php\n"; | 
			
		
	
		
			
				
					|  |  |  |  | ?> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | use yii\helpers\Html; | 
			
		
	
		
			
				
					|  |  |  |  | use <?= $generator->indexWidgetType === 'grid' ? 'yii\grid\GridView' : 'yii\widgets\ListView' ?>;
 | 
			
		
	
		
			
				
					|  |  |  |  | use <?= $generator->indexWidgetType === 'grid' ? "yii\grid\GridView" : "yii\widgets\ListView" ?>;
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | /** | 
			
		
	
		
			
				
					|  |  |  |  |  * @var yii\base\View $this | 
			
		
	
	
		
			
				
					|  |  |  | @ -28,16 +28,16 @@ $this->params['breadcrumbs'][] = $this->title; | 
			
		
	
		
			
				
					|  |  |  |  | ?> | 
			
		
	
		
			
				
					|  |  |  |  | <div class="<?= Inflector::camel2id(StringHelper::basename($generator->modelClass)) ?>-index">
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	<h1><?= "<?php" ?> echo Html::encode($this->title); ?></h1>
 | 
			
		
	
		
			
				
					|  |  |  |  | 	<h1><?= "<?= " ?>Html::encode($this->title) ?></h1>
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	<?= '<?php' . ($generator->indexWidgetType === 'grid' ? ' //' : '') ?> echo $this->render('_search', ['model' => $searchModel]); ?>
 | 
			
		
	
		
			
				
					|  |  |  |  | 	<?= "<?php " . ($generator->indexWidgetType === 'grid' ? "// " : "") ?>echo $this->render('_search', ['model' => $searchModel]); ?>
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	<p> | 
			
		
	
		
			
				
					|  |  |  |  | 		<?= '<?php' ?> echo Html::a('Create <?= StringHelper::basename($generator->modelClass) ?>', ['create'], ['class' => 'btn btn-success']); ?>
 | 
			
		
	
		
			
				
					|  |  |  |  | 		<?= "<?= " ?>Html::a('Create <?= StringHelper::basename($generator->modelClass) ?>', ['create'], ['class' => 'btn btn-success']) ?>
 | 
			
		
	
		
			
				
					|  |  |  |  | 	</p> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <?php if ($generator->indexWidgetType === 'grid'): ?> | 
			
		
	
		
			
				
					|  |  |  |  | 	<?= "<?php" ?> echo GridView::widget([
 | 
			
		
	
		
			
				
					|  |  |  |  | 	<?= "<?php " ?>echo GridView::widget([
 | 
			
		
	
		
			
				
					|  |  |  |  | 		'dataProvider' => $dataProvider, | 
			
		
	
		
			
				
					|  |  |  |  | 		'filterModel' => $searchModel, | 
			
		
	
		
			
				
					|  |  |  |  | 		'columns' => [ | 
			
		
	
	
		
			
				
					|  |  |  | @ -48,9 +48,9 @@ $count = 0; | 
			
		
	
		
			
				
					|  |  |  |  | foreach ($generator->getTableSchema()->columns as $column) { | 
			
		
	
		
			
				
					|  |  |  |  | 	$format = $generator->generateColumnFormat($column); | 
			
		
	
		
			
				
					|  |  |  |  | 	if (++$count < 6) { | 
			
		
	
		
			
				
					|  |  |  |  | 		echo "\t\t\t'" . $column->name . ($format === 'text' ? '' : ':' . $format) . "',\n"; | 
			
		
	
		
			
				
					|  |  |  |  | 		echo "\t\t\t'" . $column->name . ($format === 'text' ? "" : ":" . $format) . "',\n"; | 
			
		
	
		
			
				
					|  |  |  |  | 	} else { | 
			
		
	
		
			
				
					|  |  |  |  | 		echo "\t\t\t// '" . $column->name . ($format === 'text' ? '' : ':' . $format) . "',\n"; | 
			
		
	
		
			
				
					|  |  |  |  | 		echo "\t\t\t// '" . $column->name . ($format === 'text' ? "" : ":" . $format) . "',\n"; | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | ?> | 
			
		
	
	
		
			
				
					|  |  |  | @ -59,7 +59,7 @@ foreach ($generator->getTableSchema()->columns as $column) { | 
			
		
	
		
			
				
					|  |  |  |  | 		], | 
			
		
	
		
			
				
					|  |  |  |  | 	]); ?> | 
			
		
	
		
			
				
					|  |  |  |  | <?php else: ?> | 
			
		
	
		
			
				
					|  |  |  |  | 	<?= "<?php" ?> echo ListView::widget([
 | 
			
		
	
		
			
				
					|  |  |  |  | 	<?= "<?php " ?>echo ListView::widget([
 | 
			
		
	
		
			
				
					|  |  |  |  | 		'dataProvider' => $dataProvider, | 
			
		
	
		
			
				
					|  |  |  |  | 		'itemOptions' => ['class' => 'item'], | 
			
		
	
		
			
				
					|  |  |  |  | 		'itemView' => function ($model, $key, $index, $widget) { | 
			
		
	
	
		
			
				
					|  |  |  | 
 |