src/Helper.php
public static function getView($viewName, $data = null, $templateRootFolder = null)
    {
        $view = new \erdiko\core\View($viewName, $data);

        if ($templateRootFolder !== null) {
            $view->setTemplateRootFolder($templateRootFolder);
        }
        return  $view->toHtml();
    }
public static function getView($viewName, $data = null, $templateRootFolder = null)
    {
        $view = new \erdiko\core\View($viewName, $data);

        if ($templateRootFolder !== null) {
            $view->setTemplateRootFolder($templateRootFolder);
        }
        return  $view->toHtml();
    }
public static function getView ( $ viewName , $ data = null , $ templateRootFolder = null ) { $ view = new \ erdiko \ core \ View ( $ viewName , $ data ) ; if ( $ templateRootFolder !== null ) { $ view -> setTemplateRootFolder ( $ templateRootFolder ) ; } return $ view -> toHtml ( ) ; }
Load a view from the current theme with the given data

@param string $viewName
@param array $data
Load a view from the current theme with the given data