Current Directory: /home/astoriaah/www/plugins/system/shlib/shl_packages/mvc/layouts
Viewing File: /home/astoriaah/www/plugins/system/shlib/shl_packages/mvc/layouts/helper.php
<?php
/**
* Shlib - programming library
*
* @author Yannick Gaultier
* @copyright (c) Yannick Gaultier 2020
* @package shlib
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @version 0.4.0.716
* @date 2020-12-07
*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die;
Class ShlMvcLayout_Helper
{
public static $defaultBasePath = '';
public static function render($layoutFile, $displayData = null, $basePath = '')
{
$basePath = empty($basePath) ? self::$defaultBasePath : $basePath;
$layout = new \ShlMvcLayout_File($layoutFile, $basePath);
$renderedLayout = $layout->render($displayData);
return $renderedLayout;
}
}