/** * 保存设定 */ public function action_save() { if ($this->isPost()) { $roleId = (int) $this->getQuery('role_id'); $this->acl->assign($roleId, $this->getPost('rule_id')); $this->request->redirect('/admin/acl/assign?role_id=' . $roleId . '&mod_name=' . $this->getQuery('mod_name')); } $this->auto_render = false; }