yii\widgets\Block::run PHP 메소드

run() 공개 메소드

This method stops output buffering and saves the rendering result as a named block in the view.
public run ( )
    public function run()
    {
        $block = ob_get_clean();
        if ($this->renderInPlace) {
            echo $block;
        }
        $this->view->blocks[$this->getId()] = $block;
    }