PHP Class yii\base\ViewEvent

Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends Event
Show file Open project: yiisoft/yii2

Public Properties

Property Type Description
$isValid whether to continue rendering the view file. Event handlers of [[View::EVENT_BEFORE_RENDER]] may set this property to decide whether to continue rendering the current view file.
$output the rendering result of [[View::renderFile()]]. Event handlers may modify this property and the modified output will be returned by [[View::renderFile()]]. This property is only used by [[View::EVENT_AFTER_RENDER]] event.
$params the parameter array passed to the [[View::render()]] method.
$viewFile the view file being rendered.

Property Details

$isValid public property

whether to continue rendering the view file. Event handlers of [[View::EVENT_BEFORE_RENDER]] may set this property to decide whether to continue rendering the current view file.
public $isValid

$output public property

the rendering result of [[View::renderFile()]]. Event handlers may modify this property and the modified output will be returned by [[View::renderFile()]]. This property is only used by [[View::EVENT_AFTER_RENDER]] event.
public $output

$params public property

the parameter array passed to the [[View::render()]] method.
public $params

$viewFile public property

the view file being rendered.
public $viewFile