summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorSimon2011-03-02 15:29:33 +0100
committerSimon2011-03-02 15:29:33 +0100
commit470e4a77c5283e18940b89404f49dd31b13fb8e6 (patch)
treee4037595c1ba1f4757e36e3b77e8ea8a600fe05a /application/controllers
parentDie Models geändert da kein return der Objekte angegeben war && FilterContro... (diff)
downloadpbs2-470e4a77c5283e18940b89404f49dd31b13fb8e6.tar.gz
pbs2-470e4a77c5283e18940b89404f49dd31b13fb8e6.tar.xz
pbs2-470e4a77c5283e18940b89404f49dd31b13fb8e6.zip
filter controller - index action geändert
Diffstat (limited to 'application/controllers')
-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";
}