function editAction() { $_db = new Other_Model_DbTable_DbHelp(); if ($this->getRequest()->isPost()) { //check condition return true click submit button $_data = $this->getRequest()->getPost(); try { $_db->updateHelp($_data); Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS", self::REDIRECT_URL . "/help"); } catch (Exception $e) { Application_Form_FrmMessage::message("INSERT_FAIL"); $err = $e->getMessage(); Application_Model_DbTable_DbUserLog::writeMessageError($err); } } $id = $this->getRequest()->getParam("id"); $this->view->row = $_db->getHelpById($id); }
function termconditionAction() { $db = new Other_Model_DbTable_DbHelp(); $this->view->rows = $db->getTermCodition(); }