예제 #1
0
 function editAction()
 {
     $_db = new Other_Model_DbTable_Dbprivacy();
     if ($this->getRequest()->isPost()) {
         //check condition return true click submit button
         $_data = $this->getRequest()->getPost();
         try {
             $_db->updateprivacy($_data);
             Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS", self::REDIRECT_URL . "/privacy");
         } 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->getprivacyById($id);
 }
예제 #2
0
 function policyAction()
 {
     $db = new Other_Model_DbTable_Dbprivacy();
     $this->view->rows = $db->getAllPrivacy();
 }