Current Directory: /home/astoriaah/www/old15/plugins/system/shlib/shl_packages/mvc/layouts
Viewing File: /home/astoriaah/www/old15/plugins/system/shlib/shl_packages/mvc/layouts/helper.php
<?php
/**
* Shlib - programming library
*
* @author Yannick Gaultier
* @copyright (c) Yannick Gaultier 2013
* @package shlib
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @version 0.2.9.370
* @date 2014-06-11
*/
/** 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;
}
}