public function updatePaymentAction() { $id = $this->getRequest()->getParam("id"); if ($this->getRequest()->isPost()) { $_data = $this->getRequest()->getPost(); try { $_dbmodel = new Application_Model_DbTable_DbPayment(); // echo $id; // print_r($_data);exit(); $_dbmodel->updateFundbyParams($_data); Application_Form_FrmMessage::Sucessfull('ការបញ្ចូលជោគជ័យ', "/payment/index/index"); } catch (Exception $e) { echo $e->getMessage(); exit; $this->view->msg = 'ការបញ្ចូលមិនជោគជ័យ'; } } $sender = new Application_Model_DbTable_DbSender(); $this->view->senderlist = $sender->getAllSenderNameOweAll(); $_dbmodel = new Application_Model_DbTable_DbPayment(); $sender_id = $sender->getSenderIdbyInvoice($id); //$row = $_dbmodel->getFoundbyId($id); $tran_row = $_dbmodel->getTransactionOweByInvoice($id, $sender_id); $rat_perday = 0; if ($tran_row) { $rat_perday = $tran_row[0]['rate_perday']; } $row = $_dbmodel->getFoundbyInvoice($id, $rat_perday); //print_r($row);exit; $this->view->old_sender = $row["sender_name"]; $this->view->edite_found = $row; $this->view->invoice_no = $row['invoice_found']; $db_keycode = new Application_Model_DbTable_DbKeycode(); $this->view->keycode = $db_keycode->getKeyCodeMiniInv(); $session_user = new Zend_Session_Namespace('auth'); $this->view->user_name = $session_user->last_name . ' ' . $session_user->first_name; $cur = new Application_Model_DbTable_DbCurrencies(); $currency = $cur->getCurrencyList(); $this->view->currency = $this->_helpfilteroption($currency); //$this->view->id=$id; }