I've recently read up on Assets Management and more specifically Collections and thought that it should be quite simple to set up some css/js and call it easily through multiple web-pages. I've got my collections set up:
$this->assets ->collection('header') ->addCss('css/bootstrap.min.css');
$this->assets ->collection('footer') ->addJs('js/jquery.min.js') ->addJs('js/bootstrap.min.js');
I initially declared these in controllers/IndexController then called them using volt in view/index.volt eg:
<head> <title>Phalcon PHP Framework</title> {{ assets.outputCss('header') }} </head>
But I've found this does not reach any other views and I get the error The collection does not exist in the manager.
A little help on understanding to best set this up and what I'm doing wrong would be greatly appreciated. Thank you!