芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal-back/controllers/UserController.php
action->id === 'view') { $catalogs=$this->getCatalogs(); $result['profiles'] = $catalogs['profiles']; $result['branches'] = $catalogs['branches']; } return $result; } public function actionCatalogs(){ return $this->getCatalogs(); } private function getCatalogs(){ $catalogs=[]; $catalogs['profiles']=Profile::find()->where(['active'=>1,'trash'=>0])->all(); $catalogs['branches']=Branch::find()->where(['active'=>1,'trash'=>0])->all(); return $catalogs; } } ?>