protected function loadStaticPage($page)
    {
        $layout = $this->layout ?: $this;
        try {
            $t = 'page/'.str_replace('_', '/', strtolower($page));
            $this->template->findTemplate($t);

            $this->page_object = $layout->add($this->page_class, $page, 'Content', array($t));
        } catch (Exception_PathFinder $e2) {
            $t = 'page/'.strtolower($page);
            $this->template->findTemplate($t);
            $this->page_object = $layout->add($this->page_class, $page, 'Content', array($t));
        }

        return $this->page_object;
    }
protected function loadStaticPage($page)
    {
        $layout = $this->layout ?: $this;
        try {
            $t = 'page/'.str_replace('_', '/', strtolower($page));
            $this->template->findTemplate($t);

            $this->page_object = $layout->add($this->page_class, $page, 'Content', array($t));
        } catch (Exception_PathFinder $e2) {
            $t = 'page/'.strtolower($page);
            $this->template->findTemplate($t);
            $this->page_object = $layout->add($this->page_class, $page, 'Content', array($t));
        }

        return $this->page_object;
    }
protected function loadStaticPage ( $ page ) { $ layout = $ this -> layout ? : $ this ; try { $ t = 'page/' . str_replace ( '_' , '/' , strtolower ( $ page ) ) ; $ this -> template -> findTemplate ( $ t ) ; $ this -> page_object = $ layout -> add ( $ this -> page_class , $ page , 'Content' , array ( $ t ) ) ; } catch ( Exception_PathFinder $ e2 ) { $ t = 'page/' . strtolower ( $ page ) ; $ this -> template -> findTemplate ( $ t ) ; $ this -> page_object = $ layout -> add ( $ this -> page_class , $ page , 'Content' , array ( $ t ) ) ; } return $ this -> page_object ; }
Attempts to load static page. Raises exception if not found.

@param string $page

@return Page
Attempts to load static page . Raises exception if not found .