Thank you. Now it is more clear...
Hope ZF will adopt standard ways to do this. I was seeking for something
like Tiles (Java), that is commonly used with Struts; or like layouts in
Ruby on Rails (that are based on naming conventions).
Regards,
Paulo
Rob Allen escreveu:
Paulo Nei wrote:
Hi,
I wanna put header & footer in all view templates.
But with ZF I don't got an easy way to do it:
You need what's generally known as a Two Step view. There are multiple
ways to do it:
1. Front Controller plugin.
http://www.nabble.com/Controller-and-View-Question-tf3462561.html
2. Zend_Layout proposal.
http://framework.zend.com/wiki/display/ZFPROP/Zend_Layout
3. Zend_View Enhanced proposal.
http://framework.zend.com/wiki/pages/viewpage.action?pageId=33071
4. Extend ViewRenderer directly.
http://akrabat.com/2007/06/02/extending-viewrenderer-for-layouts/
The wiki is down again, so I could have got the links to 2 and 3 wrong!
Regards,
Rob...