Registers a CSS file.
public registerCssFile ( string $url, array $options = [], string $key = null ) | ||
$url | string | the CSS file to be registered. |
$options | array | the HTML attributes for the link tag. Please refer to [[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. |