Exemplo n.º 1
0
 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 = 'ការ​បញ្ចូល​មិន​ជោគ​ជ័យ';
         }
     }
 }