public static function createLayout($sLayoutName, View $oView)
    {
        $sLayoutsRoot = AppHelper::getInstance()->getComponentRoot('layouts');
        $sLayoutFile  = $sLayoutsRoot.DIRECTORY_SEPARATOR
            .strtolower($sLayoutName).'.php';
        if (is_readable($sLayoutFile)) {
            return new Layout($sLayoutFile, $oView);
        }
        return null;
    }
public static function createLayout($sLayoutName, View $oView)
    {
        $sLayoutsRoot = AppHelper::getInstance()->getComponentRoot('layouts');
        $sLayoutFile  = $sLayoutsRoot.DIRECTORY_SEPARATOR
            .strtolower($sLayoutName).'.php';
        if (is_readable($sLayoutFile)) {
            return new Layout($sLayoutFile, $oView);
        }
        return null;
    }
public static function createLayout ( $ sLayoutName , View $ oView ) { $ sLayoutsRoot = AppHelper :: getInstance ( ) -> getComponentRoot ( 'layouts' ) ; $ sLayoutFile = $ sLayoutsRoot . DIRECTORY_SEPARATOR . strtolower ( $ sLayoutName ) . '.php' ; if ( is_readable ( $ sLayoutFile ) ) { return new Layout ( $ sLayoutFile , $ oView ) ; } return null ; }
It creates a layout object.
@param type $sLayoutName The layout name.
@param \nadir\core\View $oView The object of view.
@return \nadir\core\Layout|null
It creates a layout object .