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.
|
|
<?php
use yii\helpers\Html; use backend\modules\shop\models\ars\City; use backend\modules\shop\models\ars\Area;
/* @var $this yii\web\View */ /* @var $model backend\models\ars\TakingSite */
$this->title = '编辑: ' . $model->name; $this->params['breadcrumbs'][] = ['label' => 'Taking Sites', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; $this->params['breadcrumbs'][] = 'Update ';
$cities = City::find()->select('city_id as id,name')->where(['province_id' => $model->province])->asArray()->all(); $cityList = \yii\helpers\ArrayHelper::map($cities, 'id', 'name'); $areas = Area::find()->select('area_id as id,name')->where(['city_id' => $model->city])->asArray()->all(); $areaList = \yii\helpers\ArrayHelper::map($areas, 'id', 'name'); ?>
<div class="taking-site-update">
<?= $this->render('_form', [ 'model' => $model, 'cityList' => $cityList, 'areaList' => $areaList ]) ?>
</div>
|