web\View registerCssFile()

registerCssFile() public method Registers a CSS file. public void registerCssFile ( $url, $options = [], $key = null )$url string The CSS file to be registered. $options array The HTML attributes for the link tag. Please refer to yii\helpers\Html::cssFile() for the supported options. The following options are specially handled and are not treated as HTML attributes: depends: array, specifies the names of the asset bundles that this CSS file depends on. $key string The key that ident

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 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 EVENT_END_BODY

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

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 head()

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

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 ( )