ZF-1198: Zend_View - support layouts.
Description
Zend_Vew should to support layouts (like in RoR, CakePHP etc.)
My proposal is to create Zend_View::registerParentScript($view, $contentVariableName);
$view is script file used as a layout. $contentVariableName is name of variable that will be used as a holder of rendered child scripts.
Additional methods: Zend_View::isParentViewRegistered() // boolean Zend_View::getContentVariableName(); // string etc.
If it does not fit Zend Framework View philosphy, maybe it there is a place to implement that in Zend_Controller_Action::initView()?
Comments
Posted by Alan Gabriel Bem (alan.bem) on 2007-04-04T06:51:05.000+0000
??If it does not fit Zend Framework View philosphy, maybe it there is a place to implement that in Zend_Controller_Action::initView()???
Maybe I wrote that too fast.
But this is my implementation of what I want:
Posted by Bill Karwin (bkarwin) on 2007-04-04T12:52:43.000+0000
Assign to Matthew.
Posted by Matthew Weier O'Phinney (matthew) on 2007-11-16T15:00:55.000+0000
The Zend_Layout proposal was accepted, and an implementation exists in the incubator at this time. Please test and provide feedback on the fw-mvc list.
Zend_Layout is scheduled for release with the 1.1.0 release.
Posted by Matthew Weier O'Phinney (matthew) on 2007-12-11T08:31:41.000+0000
Zend_Layout and all related functionality merged to core in r7078.