function getLayout()
    {
        $layoutName = ($this->layout) ? $this->layout
            : $this->getDefaultLayoutName();

        if (strstr($layoutName, '/') === false) {
            // we have just layout name
            // the directory prefix assigned to it
            $DS = (defined('DS')) ? constant('DS') : DIRECTORY_SEPARATOR;
            // derive default layout pathname
            $pathname =
                self::$PATH_PREFIX               # widgets
                .$DS
                .$this->deriveLayoutPathPrefix() # namespace_widget\widget_name\
                .$DS
                .$layoutName;

            $this->layout = $pathname;
        }

        return $this->layout;
    }
function getLayout()
    {
        $layoutName = ($this->layout) ? $this->layout
            : $this->getDefaultLayoutName();

        if (strstr($layoutName, '/') === false) {
            // we have just layout name
            // the directory prefix assigned to it
            $DS = (defined('DS')) ? constant('DS') : DIRECTORY_SEPARATOR;
            // derive default layout pathname
            $pathname =
                self::$PATH_PREFIX               # widgets
                .$DS
                .$this->deriveLayoutPathPrefix() # namespace_widget\widget_name\
                .$DS
                .$layoutName;

            $this->layout = $pathname;
        }

        return $this->layout;
    }
function getLayout ( ) { $ layoutName = ( $ this -> layout ) ? $ this -> layout : $ this -> getDefaultLayoutName ( ) ; if ( strstr ( $ layoutName , '/' ) === false ) { // we have just layout name // the directory prefix assigned to it $ DS = ( defined ( 'DS' ) ) ? constant ( 'DS' ) : DIRECTORY_SEPARATOR ; // derive default layout pathname $ pathname = self :: $ PATH_PREFIX # widgets . $ DS . $ this -> deriveLayoutPathPrefix ( ) # namespace_widget\widget_name\ . $ DS . $ layoutName ; $ this -> layout = $ pathname ; } return $ this -> layout ; }
Get view script layout

@return string|ModelInterface
Get view script layout