Example #1
0
 function editAction()
 {
     $_db = new Other_Model_DbTable_DbSeason();
     if ($this->getRequest()->isPost()) {
         //check condition return true click submit button
         $_data = $this->getRequest()->getPost();
         try {
             $_db->updateSeason($_data);
             Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS", self::REDIRECT_URL . "/season");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("INSERT_FAIL");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $id = $this->getRequest()->getParam("id");
     $this->view->row = $_db->getSeasonById($id);
 }
Example #2
0
 public function promoAction()
 {
     $db = new Other_Model_DbTable_DbSeason();
     $this->view->promorows = $db->getAllPromotionName();
     $this->view->prepromorows = $db->getAllPrePromotionName();
 }