/** * Overriding no route action to check for CMS pages. * * @return Bengine_Comm_Controller_Index */ protected function norouteAction() { if ($row = Comm::getCMS()->getPage($this->_action)) { Hook::event("ShowCMSPage", array(&$row)); $this->assign("page", $row["title"]); $this->assign("content", $row["content"]); $this->setTemplate("cms_page"); } else { parent::norouteAction(); } return $this; }