/** * Add a CSS file into the array * * @param string $file The path for the CSS-file that should be loaded. * @param bool[optional] $overwritePath Whether or not to add the module to this path. Module path is added by default. * @param bool[optional] $minify Should the CSS be minified? * @param bool[optional] $addTimestamp May we add a timestamp for caching purposes? */ public function addCSS($file, $overwritePath = false, $minify = true, $addTimestamp = null) { // redefine $file = (string) $file; $overwritePath = (bool) $overwritePath; // use module path if (!$overwritePath) { $file = '/frontend/modules/' . $this->getModule() . '/layout/css/' . $file; } // add css to the header $this->header->addCSS($file, $minify, $addTimestamp); }