public function makeViewContent($contents, $layout = null)
    {
        if ($this->suppressLayout || $this->layout == '') {
            return $contents;
        }

        // Append any undefined block content to the body block
        Block::set('undefinedBlock', $contents);
        Block::append('body', Block::get('undefinedBlock'));
        return $this->makeLayout($layout);
    }
public function makeViewContent($contents, $layout = null)
    {
        if ($this->suppressLayout || $this->layout == '') {
            return $contents;
        }

        // Append any undefined block content to the body block
        Block::set('undefinedBlock', $contents);
        Block::append('body', Block::get('undefinedBlock'));
        return $this->makeLayout($layout);
    }
public function makeViewContent ( $ contents , $ layout = null ) { if ( $ this -> suppressLayout || $ this -> layout == '' ) { return $ contents ; } // Append any undefined block content to the body block Block :: set ( 'undefinedBlock' , $ contents ) ; Block :: append ( 'body' , Block :: get ( 'undefinedBlock' ) ) ; return $ this -> makeLayout ( $ layout ) ; }
Renders supplied contents inside a layout.
@param string $contents The inner contents as a string.
@param string $layout Specifies the layout name.
@return string
Renders supplied contents inside a layout .