_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"; } } }