final public function loadLayout($layoutName, array $variables = array(), $fromTheme = false) {
        $dsLayout = $this->getLayoutPath($layoutName, $fromTheme);
        if (!$dsLayout)
            return '';

        foreach ($variables as $var => $value) {
            $$var = $value;
        }
        include $dsLayout;
    }
final public function loadLayout($layoutName, array $variables = array(), $fromTheme = false) {
        $dsLayout = $this->getLayoutPath($layoutName, $fromTheme);
        if (!$dsLayout)
            return '';

        foreach ($variables as $var => $value) {
            $$var = $value;
        }
        include $dsLayout;
    }
final public function loadLayout ( $ layoutName , array $ variables = array ( ) , $ fromTheme = false ) { $ dsLayout = $ this -> getLayoutPath ( $ layoutName , $ fromTheme ) ; if ( ! $ dsLayout ) return '' ; foreach ( $ variables as $ var => $ value ) { $ $ var = $ value ; } include $ dsLayout ; }
Loads a layout
@param string $layoutName Without the extension
@param array $variables Array of variables to pass into the layout
[name => value] with "dsLayout" as an exemption of name
@param boolean $fromTheme Indicates whether to get theme layouts or
search through modules
@return string
Loads a layout