getRouter(); } /** * Retrieve router object * * @return Zend_Controller_Router_Rewrite */ public function getRouter() { if (null === $this->_router) { $bootstrap = $this->getBootstrap(); $bootstrap->bootstrap('FrontController'); $front = $bootstrap->getContainer()->frontcontroller; $options = $this->getOptions(); if(!isset($options['routes'])) { $options['routes'] = array(); } $this->_router = $front->getRouter(); $this->_router->addConfig(new Zend_Config($options['routes'])); } return $this->_router; } }