summaryrefslogtreecommitdiffstats
path: root/application/controllers/FilterController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/FilterController.php')
-rw-r--r--application/controllers/FilterController.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/application/controllers/FilterController.php b/application/controllers/FilterController.php
index 6a80ab9..37aafb4 100644
--- a/application/controllers/FilterController.php
+++ b/application/controllers/FilterController.php
@@ -16,14 +16,10 @@ class FilterController extends Zend_Controller_Action
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();
+ try{
+ $this->_filtermapper = new Application_Model_FilterMapper();
+ $this->view->filters = $this->_filtermapper->fetchAll();
+
}catch (Zend_Exception $e) {
echo "Error message 2: " . $e->getMessage() . "\n";
}