/** * This function overrides the Zend Router if the page exists in the cms * * @return void */ protected function _initCmsRouter() { $uri = new Digitalus_Uri(); $page = new Model_Page(); if ($page->pageExists($uri) || 'public' == $this->_request->getModuleName()) { $this->_request->setModuleName('public'); $this->_request->setControllerName('index'); if ('login' != $this->_request->getActionName()) { $this->_request->setActionName('index'); } } }