update.php 773 Bytes
<?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model artbox\stock\models\City */

$this->title = Yii::t(
        'catalog',
        'Update {modelClass}: ',
        [
            'modelClass' => 'City',
        ]
    ) . $model->lang->title;
$this->params[ 'breadcrumbs' ][] = [
    'label' => Yii::t('stock', 'Cities'),
    'url'   => [ 'index' ],
];
$this->params[ 'breadcrumbs' ][] = [
    'label' => $model->lang->title,
    'url'   => [
        'view',
        'id' => $model->id,
    ],
];
$this->params[ 'breadcrumbs' ][] = Yii::t('stock', 'Update');
?>
<div class="city-update">

    <h1><?= Html::encode($this->title) ?></h1>

    <?= $this->render('_form', [
        'model' => $model,
        'modelLangs' => $modelLangs,
    ]) ?>

</div>