diff options
Diffstat (limited to 'application/controllers/FilterController.php')
| -rw-r--r-- | application/controllers/FilterController.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/application/controllers/FilterController.php b/application/controllers/FilterController.php new file mode 100644 index 0000000..da8e404 --- /dev/null +++ b/application/controllers/FilterController.php @@ -0,0 +1,42 @@ +<?php + +class FilterController extends Zend_Controller_Action +{ + + private $_filtermapper = null; + + public function init() + { + try{ + $this->_filtermapper = new Application_Model_FilterMapper(); + }catch (Zend_Exception $e) { + echo "Error message 1: " . $e->getMessage() . "\n"; + } + /* Initialize action controller here */ + } + + public function indexAction() + { + try{ + $this->_filtermapper = new Application_Model_FilterMapper(); + $this->view->filters = $this->_filtermapper->fetchAll(); + + }catch (Zend_Exception $e) { + echo "Error message 2: " . $e->getMessage() . "\n"; + } + } + + public function addfilterAction() + { + $db = Zend_Db_Table::getDefaultAdapter(); + + $addfilterform = new Application_Form_FilterAdd(); + + $this->view->addfilterform = $addfilterform; + } + + +} + + + |
