function editAction()
 {
     $_db = new Other_Model_DbTable_DbOtherinformation();
     if ($this->getRequest()->isPost()) {
         //check condition return true click submit button
         $_data = $this->getRequest()->getPost();
         try {
             $_db->updateOtherinformation($_data);
             Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS", self::REDIRECT_URL . "/otherinformation");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("EDIT_FAIL");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $id = $this->getRequest()->getParam("id");
     $this->view->row = $_db->getOtherById($id);
 }
Esempio n. 2
0
 function detailinfoAction()
 {
     $id = $this->getRequest()->getParam("id");
     $db = new Other_Model_DbTable_DbOtherinformation();
     $this->view->rows = $db->getAllInfomation();
     $this->view->row = $db->getOtherById($id);
 }