Yii2 framework backup
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
940 B

11 years ago
<?php
11 years ago
use yii\helpers\Inflector;
use yii\helpers\StringHelper;
11 years ago
/**
11 years ago
* @var yii\web\View $this
11 years ago
* @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;
/**
11 years ago
* @var yii\web\View $this
* @var <?= ltrim($generator->modelClass, '\\') ?> $model
11 years ago
*/
$this->title = <?= $generator->generateString('Create {modelClass}', ['modelClass' => Inflector::camel2words(StringHelper::basename($generator->modelClass))]) ?>;
$this->params['breadcrumbs'][] = ['label' => <?= $generator->generateString(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
<?= "<?= " ?>$this->render('_form', [
'model' => $model,
]) ?>
11 years ago
11 years ago
</div>