public function getLayout($layoutName, $data = null, $templateRootFolder = null)
    {
        $layout = new \erdiko\core\Layout($layoutName, $data, $this->getThemeName());
        $layout->setTitle($this->getBodyTitle());

        if ($templateRootFolder != null) {
            $layout->setViewRootFolder($templateRootFolder);
            $layout->setTemplateRootFolder($templateRootFolder);
        }

        return  $layout->toHtml();
    }
public function getLayout($layoutName, $data = null, $templateRootFolder = null)
    {
        $layout = new \erdiko\core\Layout($layoutName, $data, $this->getThemeName());
        $layout->setTitle($this->getBodyTitle());

        if ($templateRootFolder != null) {
            $layout->setViewRootFolder($templateRootFolder);
            $layout->setTemplateRootFolder($templateRootFolder);
        }

        return  $layout->toHtml();
    }
public function getLayout ( $ layoutName , $ data = null , $ templateRootFolder = null ) { $ layout = new \ erdiko \ core \ Layout ( $ layoutName , $ data , $ this -> getThemeName ( ) ) ; $ layout -> setTitle ( $ this -> getBodyTitle ( ) ) ; if ( $ templateRootFolder != null ) { $ layout -> setViewRootFolder ( $ templateRootFolder ) ; $ layout -> setTemplateRootFolder ( $ templateRootFolder ) ; } return $ layout -> toHtml ( ) ; }
Load a layout with the given data

@param string $layoutName
@param array $data
@return string $html, layout contents
Load a layout with the given data