Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

The collection does not exist in the manager

Am creating a multimodule application and I get the following error on the view;

The collection does not exist in the manager

In the view index file head tags I have the following;

    {{ assets.outputCss('css') }}

In the module class

     $di->setShared('assets', 'Phalcon\Assets\Manager');
       $di['assets']->collection('css')
       ->addCss('css/style.css');

Please advice. I tried initializing in the base controller but the error was the same.



2.3k
Accepted
answer

in your bootstrap file just include your assets in use in view