/** * 删除角色 * @return boolean */ public function delAction() { $iRoleID = intval($this->getParam('id')); $iRet = Model_Role::delData($iRoleID); if ($iRet == 1) { return $this->showMsg('角色删除成功!', true); } else { return $this->showMsg('角色删除失败!', false); } }