diff options
author | Simon | 2011-03-02 15:09:46 +0100 |
---|---|---|
committer | Simon | 2011-03-02 15:09:46 +0100 |
commit | 5d161755f849a2ec6b3ba80ea5690dd5c61f79d8 (patch) | |
tree | ff335f2e773f581512a135c3d3fbb141f55493bd /application/controllers/FilterController.php | |
parent | einricht script wegen mysql-pw geupdated (diff) | |
download | pbs2-5d161755f849a2ec6b3ba80ea5690dd5c61f79d8.tar.gz pbs2-5d161755f849a2ec6b3ba80ea5690dd5c61f79d8.tar.xz pbs2-5d161755f849a2ec6b3ba80ea5690dd5c61f79d8.zip |
Die Models geändert da kein return der Objekte angegeben war && FilterController
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"; + } + } + + +} + |