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.

37 lines
1.0 KiB

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
$urlParams = $generator->generateUrlParams();
11 years ago
echo "<?php\n";
11 years ago
?>
11 years ago
use yii\helpers\Html;
/**
11 years ago
* @var yii\base\View $this
* @var <?= ltrim($generator->modelClass, '\\') ?> $model
11 years ago
*/
11 years ago
$this->title = 'Update <?= Inflector::camel2words(StringHelper::basename($generator->modelClass)) ?>: ' . $model-><?= $generator->getNameAttribute() ?>;
$this->params['breadcrumbs'][] = ['label' => '<?= Inflector::pluralize(Inflector::camel2words(StringHelper::basename($generator->modelClass))) ?>', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model-><?= $generator->getNameAttribute() ?>, 'url' => ['view', <?= $urlParams ?>]];
11 years ago
$this->params['breadcrumbs'][] = 'Update';
11 years ago
?>
<div class="<?= Inflector::camel2id(StringHelper::basename($generator->modelClass)) ?>-update">
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>