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;
 }
Example #3
0
 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();
 }