protected function loadStaticPage($page) { $p = explode('_', $page); if ($p[0] == 'survey') { return parent::loadStaticPage($page); } if ($p[0] == 'a' && count($p) > 1) { throw new PathFinder_Exception('no direct loading for a', null, null); } if ($p[0] == 'doc' && count($p) > 1) { throw new PathFinder_Exception('no direct loading for docs', null, null); } if ($p[0] == 'intro' && count($p) > 1) { throw new PathFinder_Exception('no direct loading for intro', null, null); } if ($p[0] == 'learn' && count($p) > 1) { throw new PathFinder_Exception('no direct loading for learn', null, null); } if ($p[0] == 'whatsnew' && count($p) > 1) { throw new PathFinder_Exception('no direct loading for whatsnew', null, null); } if ($p[0] == 'in' && count($p) > 1) { throw new PathFinder_Exception('no direct loading for in', null, null); } $this->page_object = $this->add($this->page_class, $page, 'Content', array('page/' . str_replace('_', '/', strtolower($page)), '_top')); return $this->page_object; }