base\View beginPage()

beginPage() public method Marks the beginning of a page. public void beginPage ( )

base\View endBlock()

endBlock() public method Ends recording a block. public void endBlock ( )

base\View beginCache()

beginCache() public method Begins fragment caching. This method will display cached content if it is available. If not, it will start caching and would expect an endCache() call to end the cache and save the content into cache. A typical usage of fragment caching is as follows, if ($this->beginCache($id)) { // ...generate content here $this->endCache(); } public boolean beginCache ( $id, $properties = [] )$id string A unique ID identifying the fragment to be cached. $prop

base\View beginBlock()

beginBlock() public method Begins recording a block. This method is a shortcut to beginning yii\widgets\Block public yii\widgets\Block beginBlock ( $id, $renderInPlace = false )$id string The block ID. $renderInPlace boolean Whether to render the block content in place. Defaults to false, meaning the captured block will not be displayed. return yii\widgets\Block The Block widget instance

base\View beginContent()

beginContent() public method Begins the rendering of content that is to be decorated by the specified view. This method can be used to implement nested layout. For example, a layout can be embedded in another layout file specified as '@app/views/layouts/base.php' like the following: <?php $this->beginContent('@app/views/layouts/base.php'); ?> //...layout content here... <?php $this->endContent(); ?> See also yii\widgets\ContentDecorator. public yii\widgets\ContentDecora

base\View afterRender()

afterRender() public method This method is invoked right after renderFile() renders a view file. The default implementation will trigger the EVENT_AFTER_RENDER event. If you override this method, make sure you call the parent implementation first. public void afterRender ( $viewFile, $params, &$output )$viewFile string The view file being rendered. $params array The parameter array passed to the render() method. $output string The rendering result of the view file. Updates to thi

base\View beforeRender()

beforeRender() public method This method is invoked right before renderFile() renders a view file. The default implementation will trigger the EVENT_BEFORE_RENDER event. If you override this method, make sure you call the parent implementation first. public boolean beforeRender ( $viewFile, $params )$viewFile string The view file to be rendered. $params array The parameter array passed to the render() method. return boolean Whether to continue rendering the view file.

base\View $renderers

$renderers public property A list of available renderers indexed by their corresponding supported file extensions. Each renderer may be a view renderer object or the configuration for creating the renderer object. For example, the following configuration enables both Smarty and Twig view renderers: [ 'tpl' => ['class' => 'yii\smarty\ViewRenderer'], 'twig' => ['class' => 'yii\twig\ViewRenderer'], ] If no renderer is available for the given view file, the view file will b

base\View $theme

$theme public property The theme object or the configuration for creating the theme object. If not set, it means theming is not enabled. public yii\base\Theme|array|string $theme = null

base\View $viewFile

$viewFile public read-only property The view file currently being rendered. False if no view file is being rendered. public string|boolean getViewFile ( )