public function cRoleEdit() { $this->_modelModule = $this->getGlobal('model/Module', 'Model_Module'); if ($this->isPost()) { $info = $this->_modelModule->saveRoleAct(); if ($info['status'] == SUCCESS) { $this->success($info['info']); } else { $this->error($info['info']); } } else { $dataList = $this->_modelModule->getRoleAct(); $this->assign('dataList', $dataList); $this->display(VIEW_PAGE); } }