Assets


Class: \Flextype\Component\Assets\Assets

Visibility Function
public static add(\string $asset_type, \string $asset, \string $namespace, \integer $priority=1) : void
Add new asset Assets::add('js', 'jquery.js', 'site', 1); Assets::add('js', 'site.js', 'site', 2); Assets::add('css', 'site.css', 'site', 1); Assets::add('css', 'theme.css', 'site', 2);
public static get(\string $asset_type, \string $namespace) : array
Get assets for current namespace and asset type $css = Assets::get('css', 'site'); $js = Assets::get('js', 'site');
Language: en, ru