|
|||
|
hi all
basically, what i did previously was, extend the Zend_View class and have a display method that would do the following PHP Code:
this would save me having to put the same include or render method into all of my templates with the release of zf 1.0rc1, i wanted to try using the ViewRenderer method of rendering views but i haven't worked out how to make it automatically render the header and footer, i have followed the example to put all my controllers and views into the standard directory structure any advice thanks dave Last edited by dtra : 06-16-2007 at 04:21 AM. Reason: add code |
|
||||
|
There are several ways to do this, one is the two step view pattern and the other is a proposed Zend Framework Layout component. The two step view method was described on Maugrim The Reaper's Blog and information about the proposed Zend_Layout can be found on #zftalk (irc://irc.freenode.net/zftalk) where ralphschindler(proposal author) lurks. Zend_Layout does exactly what you want, but it is not an official ZF component just yet... We are hoping it will be included in the next release.
__________________
Zym Framework - A Zend Framework extension library w/ demo app SpotSec Blog: http://spotsec.com/blog |
![]() |
| Thread Tools | |
| Display Modes | |
|
|