neilime / zf2-assets-bundle

AssetsBundle is a module for Zend Framework 2 allowing asset managment (bundling & caching)
https://neilime.github.io/zf2-assets-bundle/
MIT License
33 stars 20 forks source link

problems with more than one module #10

Closed mathias-heilmann closed 10 years ago

mathias-heilmann commented 11 years ago

We have 2 modules (main application module and a backoffice module). If I activate the 'AssetsBundle' module, it tries to render assets from both modules instead of the module, which is currently active. Is this a bug?

neilime commented 11 years ago

It's not a bug, assets that are defined on the top level of configuration, are global assets. There's no way to define assets for only one module, you should set assets in the controller configuration. But I will improve this and allows assets configuration for specific module, very soon.

neilime commented 11 years ago

Version 2.0 supports "module" level in assets configuration