summaryrefslogtreecommitdiffstats
path: root/application/controllers/FilterController.php
diff options
context:
space:
mode:
authorSimon2011-03-02 15:09:46 +0100
committerSimon2011-03-02 15:09:46 +0100
commit5d161755f849a2ec6b3ba80ea5690dd5c61f79d8 (patch)
treeff335f2e773f581512a135c3d3fbb141f55493bd /application/controllers/FilterController.php
parenteinricht script wegen mysql-pw geupdated (diff)
downloadpbs2-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.php34
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";
+ }
+ }
+
+
+}
+