public function layout_Content()
    {
        $page = str_replace('/', '_', $this->page);

        if (method_exists($this, $pagefunc = 'page_'.$page)) {
            $p = $this->add('Page', $this->page, 'Content');
            $this->$pagefunc($p);
        } else {
            $this->app->locate('page', str_replace('_', '/', $this->page).'.php');
            $this->add('page_'.$page, $page, 'Content');
            //throw new BaseException("No such page: ".$this->page);
        }
    }
public function layout_Content()
    {
        $page = str_replace('/', '_', $this->page);

        if (method_exists($this, $pagefunc = 'page_'.$page)) {
            $p = $this->add('Page', $this->page, 'Content');
            $this->$pagefunc($p);
        } else {
            $this->app->locate('page', str_replace('_', '/', $this->page).'.php');
            $this->add('page_'.$page, $page, 'Content');
            //throw new BaseException("No such page: ".$this->page);
        }
    }
public function layout_Content ( ) { $ page = str_replace ( '/' , '_' , $ this -> page ) ; if ( method_exists ( $ this , $ pagefunc = 'page_' . $ page ) ) { $ p = $ this -> add ( 'Page' , $ this -> page , 'Content' ) ; $ this -> $ pagefunc ( $ p ) ; } else { $ this -> app -> locate ( 'page' , str_replace ( '_' , '/' , $ this -> page ) . '.php' ) ; $ this -> add ( 'page_' . $ page , $ page , 'Content' ) ; //throw new BaseException("No such page: ".$this->page); } }
Default handling of Content page. To be replaced by App_Frontend
This function initializes content. Content is page-dependant.
Default handling of Content page . To be replaced by App_Frontend This function initializes content . Content is page - dependant .