Hi,
i am using the asset manager for css and js Something like this in Volt:
    {{ assets.outputCss("header") }}
    {{ assets.outputJs("footer") }}Now i have to create in each Controller function the same files, indexAction(), searchAction() etc.
    $this->assets
        ->collection('header')
         ->addCss('bootstrap.css')
        ->addCss('custom.css');
    $this->assets
        ->collection('footer')
         ->addJs('jquery.js')
         ->addJs('bootstrap.js')
        ->addJs('custom.js');So jquery and bootstrap will always repeat and just the custom.js should be changed. instead of custom.js, i would be load search.js or index.js ... something like that.
Now i need a global Collection for jquery and bootstrap and also a local/module collection for a specific module/view.
How can i solve this?
Rgds Stefan