model = model('UserGroup'); $this->view->assign("statusList", $this->model->getStatusList()); } public function add() { $nodeList = \app\admin\model\UserRule::getTreeList(); $this->assign("nodeList", $nodeList); return parent::add(); } public function edit($ids = NULL) { $row = $this->model->get($ids); if (!$row) $this->error(__('No Results were found')); $rules = explode(',', $row['rules']); $nodeList = \app\admin\model\UserRule::getTreeList($rules); $this->assign("nodeList", $nodeList); return parent::edit($ids); } }