update.php 982 Bytes
<?php

use yii\helpers\Html;

    /**
     * @var yii\web\View               $this
     * @var common\models\CrossSection $model
     * @var array                      $regions
     * @var array                      $roads
     * @var array                      $surface_types
     * @var array                      $state_commons
     */

$this->title = 'Update Cross Section: ' . $model->cross_section_id;
$this->params['breadcrumbs'][] = ['label' => 'Cross Sections', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->cross_section_id, 'url' => ['view', 'id' => $model->cross_section_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="cross-section-update">

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

    <?= $this->render('_form', [
        'model' => $model,
        'regions'      => $regions,
        'roads'         => $roads,
        'surface_types' => $surface_types,
        'state_commons' => $state_commons,
    ]) ?>

</div>