FOF30\View\View::addCssFile PHP Method

addCssFile() public method

Add a CSS file to the page generated by the CMS
public addCssFile ( string $uri, string $version = null, string $type = 'text/css', string $media = null, array $attribs = [] )
$uri string A path definition understood by parsePath, e.g. media://com_example/css/foo.css
$version string (optional) Version string to be added to the URL
$type string MIME type of the stylesheeet
$media string Media target definition of the style sheet, e.g. "screen"
$attribs array Array of attributes
    public function addCssFile($uri, $version = null, $type = 'text/css', $media = null, $attribs = array())
    {
        // Add an automatic version if $version is null. For no version parameter pass an empty string to $version.
        if (is_null($version)) {
            $version = $this->container->mediaVersion;
        }
        $this->container->template->addCSS($uri, $version, $type, $media, $attribs);
        return $this;
    }