src/Template/Template.php
public function start($name)
    {
        if ($name === 'content') {
            throw new \LogicException('The section name "content" is reserved.');
        }

        if ($this->sectionName) {
            throw new \LogicException('You cannot nest sections within other sections.');
        }

        $this->sectionName = $name;

        ob_start();
    }
public function start($name)
    {
        if ($name === 'content') {
            throw new \LogicException('The section name "content" is reserved.');
        }

        if ($this->sectionName) {
            throw new \LogicException('You cannot nest sections within other sections.');
        }

        $this->sectionName = $name;

        ob_start();
    }
public function start ( $ name ) { if ( $ name === 'content' ) { throw new \ LogicException ( 'The section name "content" is reserved.' ) ; } if ( $ this -> sectionName ) { throw new \ LogicException ( 'You cannot nest sections within other sections.' ) ; } $ this -> sectionName = $ name ; ob_start ( ) ; }
Start a new section block.

@param  string $name

@throws \LogicException
Start a new section block .