diff options
Diffstat (limited to 'application/controllers/FilterController.php')
| -rw-r--r-- | application/controllers/FilterController.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/application/controllers/FilterController.php b/application/controllers/FilterController.php new file mode 100644 index 0000000..6a80ab9 --- /dev/null +++ b/application/controllers/FilterController.php @@ -0,0 +1,34 @@ +<?php + +class FilterController extends Zend_Controller_Action +{ + private $_filtermapper; + 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{ + $data = $this->_filtermapper->fetchAll(); + print_r( + $view = new Zend_View(); + + // tell it to use htmlentities as the escaping callback + $view->setEscape('htmlentities'); + #echo $view->render(); + }catch (Zend_Exception $e) { + echo "Error message 2: " . $e->getMessage() . "\n"; + } + } + + +} + |
