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'); ?>