base\ViewEvent $viewFile

$viewFile public property The view file being rendered. public string $viewFile = null

base\ViewEvent $params

$params public property The parameter array passed to the yii\base\View::render() method. public array $params = null

base\ViewEvent $output

$output public property The rendering result of yii\base\View::renderFile(). Event handlers may modify this property and the modified output will be returned by yii\base\View::renderFile(). This property is only used by yii\base\View::EVENT_AFTER_RENDER event. public string $output = null

base\ViewEvent $isValid

$isValid public property Whether to continue rendering the view file. Event handlers of yii\base\View::EVENT_BEFORE_RENDER may set this property to decide whether to continue rendering the current view file. public boolean $isValid = true

base\ViewContextInterface getViewPath()

getViewPath() public abstract method public abstract string getViewPath ( )return string The view path that may be prefixed to a relative view name.

base\View renderPhpFile()

renderPhpFile() public method Renders a view file as a PHP script. This method treats the view file as a PHP script and includes the file. It extracts the given parameters and makes them available in the view file. The method captures the output of the included view file and returns it as a string. This method should mainly be called by view renderer or renderFile(). public string renderPhpFile ( $_file_, $_params_ = [] )$_file_ string The view file. $_params_ array The parameters (nam

base\View renderFile()

renderFile() public method Renders a view file. If $theme is enabled (not null), it will try to render the themed version of the view file as long as it is available. The method will call yii\helpers\FileHelper::localize() to localize the view file. If renderer is enabled (not null), the method will use it to render the view file. Otherwise, it will simply include the view file as a normal PHP file, capture its output and return it as a string. public string renderFile ( $viewFile, $param

base\View renderDynamic()

renderDynamic() public method Renders dynamic content returned by the given PHP statements. This method is mainly used together with content caching (fragment caching and page caching) when some portions of the content (called dynamic content) should not be cached. The dynamic content must be returned by some PHP statements. public string renderDynamic ( $statements )$statements string The PHP statements for generating the dynamic content. return string The placeholder of the dynamic c

base\View render()

render() public method Renders a view. The view to be rendered can be specified in one of the following formats: path alias (e.g. "@app/views/site/index"); absolute path within application (e.g. "//site/index"): the view name starts with double slashes. The actual view file will be looked for under the view path of the application. absolute path within current module (e.g. "/site/index"): the view name starts with a single slash. The actual view file will be looked for under the view path o

base\View init()

init() public method Initializes the view component. public void init ( )