protected function RenderArea($name)
    {
        $area = $this->areas[$name];
        if (!$area)
        {
            throw new \InvalidArgumentException("Invalid area name $name");
        }
        $layoutAreaRenderer = new LayoutAreaRenderer($area);
        $result = $layoutAreaRenderer->Render();
       
        $pageAreaRenderer = new PageAreaRenderer($this->page, $area);
        $result .= $pageAreaRenderer->Render();
        return $result;
    }
protected function RenderArea($name)
    {
        $area = $this->areas[$name];
        if (!$area)
        {
            throw new \InvalidArgumentException("Invalid area name $name");
        }
        $layoutAreaRenderer = new LayoutAreaRenderer($area);
        $result = $layoutAreaRenderer->Render();
       
        $pageAreaRenderer = new PageAreaRenderer($this->page, $area);
        $result .= $pageAreaRenderer->Render();
        return $result;
    }
protected function RenderArea ( $ name ) { $ area = $ this -> areas [ $ name ] ; if ( ! $ area ) { throw new \ InvalidArgumentException ( "Invalid area name $name" ) ; } $ layoutAreaRenderer = new LayoutAreaRenderer ( $ area ) ; $ result = $ layoutAreaRenderer -> Render ( ) ; $ pageAreaRenderer = new PageAreaRenderer ( $ this -> page , $ area ) ; $ result .= $ pageAreaRenderer -> Render ( ) ; return $ result ; }
Renders the area with the given name
@param string $name The area name
@return string Returns the rendering output for the area
@throws \InvalidArgumentException Raises an exception on invalid area name
Renders the area with the given name