update.php
831 Bytes
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model frontend\models\Option */
$this->title = Yii::t('app', 'Update {modelClass}: ', [
'modelClass' => 'Option',
]) . ' ' . $models[\Yii::$app->request->get('id')]->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Options'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $models[\Yii::$app->request->get('id')]->name, 'url' => ['view', 'id' => $models[\Yii::$app->request->get('id')]->option_id]];
$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
?>
<div class="option-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form_edit', [
'models' => $models,
'modellang' => $modellang,
'modeldb' => $modeldb,
'model_id' => $model_id
]) ?>
</div>