public function fetch($name, $default = '')
    {
        $viewblock = '';
        $viewblocks = $this->get('viewblocks', []);
        if (!empty($viewblocks[$name])) {
            $viewblock = $this->_createViewblock($viewblocks[$name]);
        }

        $internal = $this->Blocks->get($name, $default);

        return $internal . $viewblock;
    }
public function fetch($name, $default = '')
    {
        $viewblock = '';
        $viewblocks = $this->get('viewblocks', []);
        if (!empty($viewblocks[$name])) {
            $viewblock = $this->_createViewblock($viewblocks[$name]);
        }

        $internal = $this->Blocks->get($name, $default);

        return $internal . $viewblock;
    }
public function fetch ( $ name , $ default = '' ) { $ viewblock = '' ; $ viewblocks = $ this -> get ( 'viewblocks' , [ ] ) ; if ( ! empty ( $ viewblocks [ $ name ] ) ) { $ viewblock = $ this -> _createViewblock ( $ viewblocks [ $ name ] ) ; } $ internal = $ this -> Blocks -> get ( $ name , $ default ) ; return $ internal . $ viewblock ; }
Fetch the content for a block. If a block is
empty or undefined '' will be returned.

@param string $name Name of the block
@param string $default Default text
@return string default The block content or $default if the block does not exist.
@see ViewBlock::get()
Fetch the content for a block . If a block is empty or undefined will be returned .