City(); return $this->render('index',['city'=>$city]); } public function actionGethouselist() { $modelServer = new TimeLimitsGroupServer(); $rows = $modelServer->GroupHouselist(Yii::$app->request->get()); if(!empty($rows)) { return Help::JsonCode(Help::SUCCESS,'成功',$rows['data']); } return Help::JsonCode(Help::ERROR,'暂无相关楼盘数据'); } private function City() { $city = new \common\models\CategoryCity(); $city->state = 1; $city->pid = 0; $cityModel = $city->getList([]); return $cityModel; } public function actionIndextest() { $city=$this->City(); return $this->render('indextest',['city'=>$city]); } }