That's how AM was designed. AssetManager will cycle through configured resolvers and find (by priority) the first asset that is a "hit". That way, multiple modules can map same paths, and the assets will basically be an union of all modules (depending on priority).
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 4 May 2014 17:54, Jonathan Sundquist <[email protected]> wrote: > Hello Marco > > > > On Sun, May 4, 2014 at 10:38 AM, Marco Pivetta <[email protected]> wrote: > >> Hi Jonathan, >> >> On 4 May 2014 03:52, Jonathan Sundquist <[email protected]> wrote: >> >>> I just checked my application and it appears as though that files are >>> being >>> loaded via /css/test-file.css instead of /Application/css/test-file.css. >>> Does this seem correct or would there be a speed improvement if it >>> loaded >>> via /Application? >>> >> >> Correct, files are served 1:1 from the namespaces you mapped in >> AssetManager. If you need to put an "Application/" in front of those, you >> either need to use a map resolver (allows you to redefine paths for single >> assets) or you need to push the assets in an "Application" directory within >> the module that contains them. >> >> That is also a good practice, as it allows you to "namespace" assets to >> avoid collisions with secondary modules that may provide their own. >> >> >> Cheers, >> >> Marco Pivetta >> >> http://twitter.com/Ocramius >> >> http://ocramius.github.com/ >> >> > > I wonder if I am ding something wrong then as I am able to get items that > are either in my Applicaiton module or even other modules to resolve under > only /css. My code can be found at > https://bitbucket.org/jsundquist/zf2-sample-application. >
