public function rateAction() { $db_rate = new Application_Model_DbTable_DbRate(); if ($this->getRequest()->isPost()) { $formdata = $this->getRequest()->getPost(); $db_rate->setNewRate($formdata); } $this->view->ratelist = $db_rate->getCurrentRate(); $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; }
function editAction() { $db_rate = new Application_Model_DbTable_DbRate(); if ($this->getRequest()->isPost()) { $formdata = $this->getRequest()->getPost(); //$db_rate=new Application_Model_DbTable_DbRate(); try { $db_rate->setNewRate($formdata); Application_Form_FrmMessage::Sucessfull('ការបញ្ចូលជោគជ័យ', '/exchange/exchangrate'); } catch (Exception $e) { echo $e->getMessage(); exit; $this->view->msg = 'ការបញ្ចូលមិនជោគជ័យ'; } } $this->view->ratelist = $db_rate->getCurrentRate(); $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; }
public function rateAction() { $db_rate = new Application_Model_DbTable_DbRate(); if ($this->getRequest()->isPost()) { $formdata = $this->getRequest()->getPost(); $db_rate->setNewRate($formdata); } $this->view->ratelist = $db_rate->getCurrentRate(); }