function addAction() { //insert table cms_keeping if ($this->getRequest()->isPost()) { $data = $this->getRequest()->getPost(); // print_r($data);exit(); $db_keeping = new Keeping_Model_DbTable_DbKeeping(); try { if ($this->getRequest()->getParam("btn_save")) { $db = $db_keeping->insertKeeping($data); Application_Form_FrmMessage::Sucessfull('ការបញ្ចូលជោគជ័យ', self::REDIRECT_URL); } } catch (Exception $e) { echo $e->getMessage(); exit; $this->view->msg = 'ការបញ្ចូលមិនជោគជ័យ'; } $this->_redirect("Keeping/index/index"); } //form $sendmoney = new Keeping_Form_FrmSendMoney(); $db = new Keeping_Model_DbTable_DbKeeping(); $frm = $sendmoney->addSendMoney(); //echo $frm;exit(); Application_Model_Decorator::removeAllDecorator($frm); $this->view->frm = $frm; $this->view->currency_type = $db->CurruncyTypeOption(); }