메소드 | 설명 | |
---|---|---|
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel ) | ||
addCSS ( string $file, string $module = null, boolean $overwritePath = false, boolean $minify = true, boolean $addTimestamp = false ) | Add a CSS-file. | |
addJS ( string $file, string $module = null, boolean $minify = true, boolean $overwritePath = false, boolean $addTimestamp = false ) | Add a JS-file. | |
addJsData ( string $module, string $key, mixed $value ) | Add data into the jsData | |
getCSSFiles ( ) : array | Get all added CSS files | |
getJSFiles ( ) : array | get all added javascript files | |
parse ( ) | Parse the header into the template | |
parseCSS ( ) | Parse the CSS-files | |
parseJS ( ) | Parse the JS-files |
메소드 | 설명 | |
---|---|---|
minifyCSS ( string $file ) : string | Minify a CSS-file | |
minifyJS ( string $file ) : string | Minify a JS-file |
public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel ) | ||
$kernel | Symfony\Component\HttpKernel\KernelInterface |
public addCSS ( string $file, string $module = null, boolean $overwritePath = false, boolean $minify = true, boolean $addTimestamp = false ) | ||
$file | string | The name of the file to load. |
$module | string | The module wherein the file is located. |
$overwritePath | boolean | Should we overwrite the full path? |
$minify | boolean | Should the CSS be minified? |
$addTimestamp | boolean | May we add a timestamp for caching purposes? |
public addJS ( string $file, string $module = null, boolean $minify = true, boolean $overwritePath = false, boolean $addTimestamp = false ) | ||
$file | string | The file to load. |
$module | string | The module wherein the file is located. |
$minify | boolean | Should the module be minified? |
$overwritePath | boolean | Should we overwrite the full path? |
$addTimestamp | boolean | May we add a timestamp for caching purposes? |