web\View registerCss()

registerCss() public method Registers a CSS code block. public void registerCss ( $css, $options = [], $key = null )$css string The content of the CSS code block to be registered $options array The HTML attributes for the <style>-tag. $key string The key that identifies the CSS code block. If null, it will use $css as the key. If two CSS code blocks are registered with the same key, the latter will overwrite the former.

web\View registerAssetFiles()

registerAssetFiles() protected method Registers all files provided by an asset bundle including depending bundles files. Removes a bundle from $assetBundles once files are registered. protected void registerAssetFiles ( $name )$name string Name of the bundle to register

web\View registerAssetBundle()

registerAssetBundle() public method Registers the named asset bundle. All dependent asset bundles will be registered. public yii\web\AssetBundle registerAssetBundle ( $name, $position = null )$name string The class name of the asset bundle (without the leading backslash) $position integer|null If set, this forces a minimum position for javascript files. This will adjust depending assets javascript file position or fail if requirement can not be met. If this is null, asset bundles pos

web\View head()

head() public method Marks the position of an HTML head section. public void head ( )

web\View getAssetManager()

getAssetManager() public method Registers the asset manager being used by this view object. public yii\web\AssetManager getAssetManager ( )return yii\web\AssetManager The asset manager. Defaults to the "assetManager" application component.

web\View EVENT_END_BODY

EVENT_END_BODY event of type \yii\web\Event An event that is triggered by endBody().

web\View EVENT_BEGIN_BODY

EVENT_BEGIN_BODY event of type \yii\web\Event An event that is triggered by beginBody().

web\View endPage()

endPage() public method Marks the ending of an HTML page. public void endPage ( $ajaxMode = false )$ajaxMode boolean Whether the view is rendering in AJAX mode. If true, the JS scripts registered at POS_READY and POS_LOAD positions will be rendered at the end of the view like normal scripts.

web\View endBody()

endBody() public method Marks the ending of an HTML body section. public void endBody ( )

web\View clear()

clear() public method Clears up the registered meta tags, link tags, css/js scripts and files. public void clear ( )