public function editedAction() { // action body $us_id = $this->getRequest()->getParam('us_id'); $us_id = empty($us_id) ? 0 : $us_id; $db_user = new Application_Model_DbTable_DbUsers(); $this->view->user_edit = $db_user->getUserEdit($us_id); $this->view->user_typelist = $this->user_typelist; if ($this->getRequest()->isPost()) { $userdata = $this->getRequest()->getPost(); try { $db = $db_user->updateUser($userdata); Application_Form_FrmMessage::Sucessfull('ការបញ្ចូលជោគជ័យ', self::REDIRECT_URL); } catch (Exception $e) { $this->view->msg = 'ការបញ្ចូលមិនជោគជ័យ'; } } }