### Usage
Include one CSS file:
echo $this->Html->css('styles.css');
Include multiple CSS files:
echo $this->Html->css(['one.css', 'two.css']);
Add the stylesheet to view block "css":
$this->Html->css('styles.css', ['block' => true]);
Add the stylesheet to a custom block:
$this->Html->css('styles.css', ['block' => 'layoutCss']);
### Options
- block Set to true to append output to view block "css" or provide
custom block name.
- once Whether or not the css file should be checked for uniqueness. If true css
files will only be included once, use false to allow the same
css to be included more than once per request.
- plugin False value will prevent parsing path as a plugin
- rel Defaults to 'stylesheet'. If equal to 'import' the stylesheet will be imported.
- fullBase If true the URL will get a full address for the css file.
public css ( string | array $path, array $options = [] ) : string | null | ||
$path | string | array | The name of a CSS style sheet or an array containing names of CSS stylesheets. If `$path` is prefixed with '/', the path will be relative to the webroot of your application. Otherwise, the path will be relative to your CSS path, usually webroot/css. |
$options | array | Array of options and HTML arguments. |
리턴 | string | null | CSS `` or ` |