summaryrefslogtreecommitdiffstats
path: root/application/controllers/FilterController.php
blob: 6a80ab9183185f41a5de936eded6d96336597d38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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";  
		} 
    }


}