You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
843 B
33 lines
843 B
<?php |
|
|
|
use yii\helpers\FileHelper; |
|
use yii\helpers\Inflector; |
|
|
|
/** |
|
* @var yii\web\View $this |
|
* @var yii\gii\generators\crud\Generator $generator |
|
*/ |
|
|
|
echo "<?php\n"; |
|
?> |
|
|
|
use yii\helpers\Html; |
|
|
|
/** |
|
* @var yii\web\View $this |
|
* @var <?= ltrim($generator->modelClass, '\\') ?> $model |
|
*/ |
|
|
|
$this->title = 'Create <?= Inflector::camel2words(FileHelper::basename($generator->modelClass)) ?>'; |
|
$this->params['breadcrumbs'][] = ['label' => '<?= Inflector::pluralize(Inflector::camel2words(BaseFileHelper::basename($generator->modelClass))) ?>', 'url' => ['index']]; |
|
$this->params['breadcrumbs'][] = $this->title; |
|
?> |
|
<div class="<?= Inflector::camel2id(FileHelper::basename($generator->modelClass)) ?>-create"> |
|
|
|
<h1><?= "<?= " ?>Html::encode($this->title) ?></h1> |
|
|
|
<?= "<?php " ?>echo $this->render('_form', [ |
|
'model' => $model, |
|
]); ?> |
|
|
|
</div>
|
|
|