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/

Reply via email to