I am currently working on a ZF projec , pretty standard , utilizing the
lovely MVC pattern for it .
I just finished writing a piece of code to quickly optimize & aggregate CSS
files (based on a mechanism I saw used in Drupal , CSS files are added to a
css registry via a function call with a file name at the end before
rendering the content the mechanism iterates all the files optimizing them
and aggregating them into a single file that file is used at the final
content as the css file)
I want to integrate that in my ZF application my problem is how to perform
the action automatically before rendering(I am using Zend_Layout) , so I
thought either of a Controller Plugin(which I started but didn't see how to
finalize , specific controllers can get the plugin from the front controller
and call a function to add a css file to the registry but how does it
interact with the view ?) I thought about somehow from there maybe in
postDispatch or something to interact with the view object and add the css
files to headLink() but I could not see how it could interact with the view
, I also considered a Layout_Plugin but again failed.
I am turning to you if you could shed some light on the subject , how could
I interact with the view from such a point in my application flow ?
--
View this message in context: http://www.nabble.com/Post-Dispatch-View-Intergration-tp24095302p24095302.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论