hasPluginResource('FrontController')) { $this->registerPluginResource('FrontController'); } } /** * Run the application * * Checks to see that we have a default controller directory. If not, an * exception is thrown. * * If so, it registers the bootstrap with the 'bootstrap' parameter of * the front controller, and dispatches the front controller. * * @return void * @throws Zend_Application_Bootstrap_Exception */ public function run() { $front = $this->getResource('FrontController'); $default = $front->getDefaultModule(); if (null === $front->getControllerDirectory($default)) { throw new Zend_Application_Bootstrap_Exception( 'No default controller directory registered with front controller' ); } $front->setParam('bootstrap', $this); $front->dispatch(); } }