PHP Class yii\widgets\Block

Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends yii\base\Widget
Mostra file Open project: yiisoft/yii2 Class Usage Examples

Public Properties

Property Type Description
$renderInPlace whether to render the block content in place. Defaults to false, meaning the captured block content will not be displayed.

Public Methods

Method Description
init ( ) Starts recording a block.
run ( ) Ends recording a block.

Method Details

init() public method

Starts recording a block.
public init ( )

run() public method

This method stops output buffering and saves the rendering result as a named block in the view.
public run ( )

Property Details

$renderInPlace public_oe property

whether to render the block content in place. Defaults to false, meaning the captured block content will not be displayed.
public $renderInPlace