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:
|
$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. |
Please login to continue.