芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/controllers/FlightController.php
action->id=='view'){ $result=array_merge($result,$this->getCatalogs()); } return $result; } public function actionCatalogs(){ return $this->getCatalogs(); } private function getCatalogs(){ $airlines=Airline::find()->where(['active'=>1,'trash'=>0])->all(); $destinations=Destination::find()->where(['active'=>1,'trash'=>0])->all(); return compact('airlines','destinations'); } } ?>