public function start($name)
    {
        if (in_array($name, $this->openBlocks)) {
            throw new \InvalidArgumentException(sprintf('A block named "%s" is already started.', $name));
        }

        $this->openBlocks[] = $name;
        $this->blocks[$name] = '';

        ob_start();
        ob_implicit_flush(0);
    }
public function start($name)
    {
        if (in_array($name, $this->openBlocks)) {
            throw new \InvalidArgumentException(sprintf('A block named "%s" is already started.', $name));
        }

        $this->openBlocks[] = $name;
        $this->blocks[$name] = '';

        ob_start();
        ob_implicit_flush(0);
    }
public function start ( $ name ) { if ( in_array ( $ name , $ this -> openBlocks ) ) { throw new \ InvalidArgumentException ( sprintf ( 'A block named "%s" is already started.' , $ name ) ) ; } $ this -> openBlocks [ ] = $ name ; $ this -> blocks [ $ name ] = '' ; ob_start ( ) ; ob_implicit_flush ( 0 ) ; }
Starts a new block.

This method starts an output buffer that will be
closed when the stop() method is called.

@param string $name The block name

@throws \InvalidArgumentException if a block with the same name is already started

@api
Starts a new block .