framework/basic/View.php
public function content($parentView = null)
    {
        if ($parentView === null) {
            $content                 = ob_get_clean();
            ob_clean();
            $this->params['scripts'] = $this->generateScripts();
            $this->params['css']     = $this->generateCSS();
            echo $this->render($this->parentLayout,
                array_merge($this->getBlocks(), $this->params,
                    ['content' => $content])
            );
        } else {
            $this->parentLayout = $parentView;
            ob_start();
        }
    }
public function content($parentView = null)
    {
        if ($parentView === null) {
            $content                 = ob_get_clean();
            ob_clean();
            $this->params['scripts'] = $this->generateScripts();
            $this->params['css']     = $this->generateCSS();
            echo $this->render($this->parentLayout,
                array_merge($this->getBlocks(), $this->params,
                    ['content' => $content])
            );
        } else {
            $this->parentLayout = $parentView;
            ob_start();
        }
    }
public function content ( $ parentView = null ) { if ( $ parentView === null ) { $ content = ob_get_clean ( ) ; ob_clean ( ) ; $ this -> params [ 'scripts' ] = $ this -> generateScripts ( ) ; $ this -> params [ 'css' ] = $ this -> generateCSS ( ) ; echo $ this -> render ( $ this -> parentLayout , array_merge ( $ this -> getBlocks ( ) , $ this -> params , [ 'content' => $ content ] ) ) ; } else { $ this -> parentLayout = $ parentView ; ob_start ( ) ; } }
Content for parent layout

@param string $parentView
Content for parent layout