I am generating css "bundles" from sass/compass for usage in a Zend app.
In my dev environment I want to have the bundles contain all the comments back to the original sass files to track down visual bugs.
In production I want to minify, compress, and send them to a cdn with a unique md5 name generated from the scss versions as part of a deploy process.
What is a good way for Zend to manage which url to use in which environment? Is a view helper a good solution? Is there a better way?
Thanks!
You could write your own Zend_Application_Resource
(e.g. based on the existing Zend_Application_Resource_View
), just add the css-settings to your application.ini and then simply call the urlHelper in your layout/view.
An even simpler approach would be to just conditionally set the viewHelper in your layout based on your APPLICATION_ENV.
A more elaborate approach would be to integrate Assetic in your app.