Exemplo n.º 1
0
 public function getcontentAction()
 {
     $this->_request->getParam('id');
     $form = new Application_Form_Content();
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         if ($form->isValid($data)) {
             $currency = $form->getValue('currency_id');
             $fromDate = $form->getValue('fromDate');
             $toDate = $form->getValue('toDate');
             $currencyList = new Application_Model_DbTable_Rate();
             $currencies = $currencyList->getcontentRate($currency, $fromDate, $toDate);
             // var_dump($currencies);die;
             // var_dump($fromDate);die;
             $this->view->currencies = $currencies;
             $this->view->currency_id = $currency;
             $this->view->fromDate = $fromDate;
             $this->view->toDate = $toDate;
         } else {
             $this->_redirect('currencyinfo/content');
         }
     }
 }