_filtermapper = new Application_Model_FilterMapper(); }catch (Zend_Exception $e) { echo "Error message 1: " . $e->getMessage() . "\n"; } /* Initialize action controller here */ } public function indexAction() { try{ $this->_filtermapper = new Application_Model_FilterMapper(); $this->view->filters = $this->_filtermapper->fetchAll(); }catch (Zend_Exception $e) { echo "Error message 2: " . $e->getMessage() . "\n"; } } public function addfilterAction() { $db = Zend_Db_Table::getDefaultAdapter(); $addfilterform = new Application_Form_FilterAdd(); $this->view->addfilterform = $addfilterform; } }