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 identifies the CSS script file. If null, it will use $url as the key. If two CSS files are registered with the same key, the latter will overwrite the former.

doc_Yii
2016-10-30 17:17:33
Comments
Leave a Comment

Please login to continue.