I'm using Zend_Controller_Action to create presentable objects (like page, sitemap, items, user...) which I then pass to Zend_View. Zend_View then creates response using specified template (html, xml, txt, ...)
I would like to know your opinion: Where should the response's http headers be set ? The View is responsible for presentation of the content and most of the headers I need to set are content-related (content-type, cache-control, content-language...). So I guess the headers could be set in the view's template. That would make my controllers much cleaner. On the other hand, I'm not sure it is a good idea to use the templates for something else than just creating the html/xml/txt. Thanks for any ideas. -jj -- View this message in context: http://www.nabble.com/Where-to-set-http-response-headers-%28best-practice%29-tp18142685p18142685.html Sent from the Zend Framework mailing list archive at Nabble.com.
