framework/basic/View.php
public function block($name = null)
    {
        if ($name === null) {
            $this->addBlock($this->currentBlock, ob_get_clean());
            $this->currentBlock = '';
            ob_clean();
        } else {
            $this->currentBlock = $name;
            ob_start();
        }
    }
public function block($name = null)
    {
        if ($name === null) {
            $this->addBlock($this->currentBlock, ob_get_clean());
            $this->currentBlock = '';
            ob_clean();
        } else {
            $this->currentBlock = $name;
            ob_start();
        }
    }
public function block ( $ name = null ) { if ( $ name === null ) { $ this -> addBlock ( $ this -> currentBlock , ob_get_clean ( ) ) ; $ this -> currentBlock = '' ; ob_clean ( ) ; } else { $ this -> currentBlock = $ name ; ob_start ( ) ; } }
Start or stop content block

@param string $name
Start or stop content block