Yii2 Bootstrap 3
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.

34 lines
849 B

11 years ago
<?php
11 years ago
use yii\helpers\Inflector;
use yii\helpers\StringHelper;
11 years ago
/**
11 years ago
* @var yii\base\View $this
* @var yii\gii\generators\crud\Generator $generator
11 years ago
*/
11 years ago
echo "<?php\n";
11 years ago
?>
11 years ago
use yii\helpers\Html;
/**
* @var yii\base\View $this
* @var <?= ltrim($generator->modelClass, '\\') ?> $model
11 years ago
*/
$this->title = 'Create <?= Inflector::camel2words(StringHelper::basename($generator->modelClass)) ?>';
$this->params['breadcrumbs'][] = ['label' => '<?= Inflector::pluralize(Inflector::camel2words(StringHelper::basename($generator->modelClass))) ?>', 'url' => ['index']];
11 years ago
$this->params['breadcrumbs'][] = $this->title;
11 years ago
?>
<div class="<?= Inflector::camel2id(StringHelper::basename($generator->modelClass)) ?>-create">
11 years ago
<h1><?= "<?= " ?>Html::encode($this->title) ?></h1>
11 years ago
<?= "<?php " ?>echo $this->render('_form', [
11 years ago
'model' => $model,
]); ?>
11 years ago
11 years ago
</div>