Re: [fw-general] JavaScript and CSS within module

2014-05-04 Thread Marco Pivetta
Hi Jonathan, On 4 May 2014 03:52, Jonathan Sundquist jsundqu...@gmail.com 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

Re: [fw-general] JavaScript and CSS within module

2014-05-04 Thread Jonathan Sundquist
Hello Marco On Sun, May 4, 2014 at 10:38 AM, Marco Pivetta ocram...@gmail.com wrote: Hi Jonathan, On 4 May 2014 03:52, Jonathan Sundquist jsundqu...@gmail.com wrote: I just checked my application and it appears as though that files are being loaded via /css/test-file.css instead of

Re: [fw-general] JavaScript and CSS within module

2014-05-04 Thread Marco Pivetta
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

Re: [fw-general] JavaScript and CSS within module

2014-05-03 Thread Jonathan Sundquist
Hello Marco, 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? Thanks, Jonathan On Sat, May 3, 2014

Re: [fw-general] JavaScript and CSS within module

2014-05-02 Thread Marco Pivetta
Hi Jonathan, You may want to look at asset-management modules such as AssetManager (I described it at http://ocramius.github.io/blog/asset-manager-for-zend-framework-2/ ) ( https://github.com/RWOverdijk/AssetManager ) or BaconAssetLoader ( https://github.com/Bacon/BaconAssetLoader ). Cheers,

Re: [fw-general] JavaScript and CSS within module

2014-05-02 Thread Jonathan Sundquist
Hi Marco, Thank you for your reply. Your blog post is exactly what I am looking for. One question on it though. When it states that I should test the application using http://localhost/path/to/ZendSkeletonApplication/Application/css/test-file.css, if I am using a vagrant instance and