Details
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()?
Issue Links
| This issue depends on: | ||||
| ZF-2116 | View Layouts |
|
|
|
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: