generateUrlParams(); echo " use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model = ltrim($generator->modelClass, '\\') ?> */ $this->title = $model->= $generator->getNameAttribute() ?>; $this->params['breadcrumbs'][] = ['label' => = $generator->generateString(Inflector::pluralize(Inflector::camel2words(StringHelper::basename($generator->modelClass)))) ?>, 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?>
= "= " ?>Html::a(= $generator->generateString('Update') ?>, ['update', = $urlParams ?>], ['class' => 'btn btn-primary']) ?> = "= " ?>Html::a(= $generator->generateString('Delete') ?>, ['delete', = $urlParams ?>], [ 'class' => 'btn btn-danger', 'data' => [ 'confirm' => = $generator->generateString('Are you sure you want to delete this item?') ?>, 'method' => 'post', ], ]) ?>
= "= " ?>DetailView::widget([ 'model' => $model, 'attributes' => [ getTableSchema()) === false) { foreach ($generator->getColumnNames() as $name) { echo " '" . $name . "',\n"; } } else { foreach ($generator->getTableSchema()->columns as $column) { $format = $generator->generateColumnFormat($column); echo " '" . $column->name . ($format === 'text' ? "" : ":" . $format) . "',\n"; } } ?> ], ]) ?>