function Render()
    {
        self::$currentPage = $this->page;
        self::$Title = self::$currentPage->GetTitle();
        self::$Description = self::$currentPage->GetDescription();
        self::$Keywords = self::$currentPage->GetKeywords();
        if ($this->page->GetType() == (string)PageType::NotFound())
        {
            header('HTTP/1.0 404 Not Found');
        }
        else if ($this->page->GetType() !== (string)PageType::Normal())
        {
            throw new \Exception('Internal phine error: not normal page called');
        }
        ob_start();
        require PathUtil::LayoutTemplate($this->layout);
        $result = ob_get_clean();
        $replacer = new Replacer();
        return $replacer->RealizeVariables($result);
    }
function Render()
    {
        self::$currentPage = $this->page;
        self::$Title = self::$currentPage->GetTitle();
        self::$Description = self::$currentPage->GetDescription();
        self::$Keywords = self::$currentPage->GetKeywords();
        if ($this->page->GetType() == (string)PageType::NotFound())
        {
            header('HTTP/1.0 404 Not Found');
        }
        else if ($this->page->GetType() !== (string)PageType::Normal())
        {
            throw new \Exception('Internal phine error: not normal page called');
        }
        ob_start();
        require PathUtil::LayoutTemplate($this->layout);
        $result = ob_get_clean();
        $replacer = new Replacer();
        return $replacer->RealizeVariables($result);
    }
function Render ( ) { self :: $ currentPage = $ this -> page ; self :: $ Title = self :: $ currentPage -> GetTitle ( ) ; self :: $ Description = self :: $ currentPage -> GetDescription ( ) ; self :: $ Keywords = self :: $ currentPage -> GetKeywords ( ) ; if ( $ this -> page -> GetType ( ) == ( string ) PageType :: NotFound ( ) ) { header ( 'HTTP/1.0 404 Not Found' ) ; } else if ( $ this -> page -> GetType ( ) !== ( string ) PageType :: Normal ( ) ) { throw new \ Exception ( 'Internal phine error: not normal page called' ) ; } ob_start ( ) ; require PathUtil :: LayoutTemplate ( $ this -> layout ) ; $ result = ob_get_clean ( ) ; $ replacer = new Replacer ( ) ; return $ replacer -> RealizeVariables ( $ result ) ; }
Renders the complete page by requiring the page layout
@return string Returns the page contents
Renders the complete page by requiring the page layout