I was trying to put into consideration, setting a default layout for a specific module. One may have a blog or admin module with uses a completely different default layout. I am not sure if Zend_Application would suggest us to create "module controller" to extend from because of the namespaced registry (I'm probably wrong, as I only skimmed the proposal). The question is would xend/zend_layout handle setting default module layouts on top of a global default layout or should we create a controller and set the default module layout in init()?
Being able to change a module or even a controllers layout outside of the module would allow modules to less dependent on it's environment. I guess this also depends on how you use zend_layout too, if each action is a "layout section" (menu, body, sidebar), the page content can be changed dynamically rather than having a "layout section" be set by a subrequest in a module etc... It's just a rant, but I would like your thoughts? &-( Matthew Weier O'Phinney-3 wrote: > > -- PotatoBob <[EMAIL PROTECTED]> wrote > (on Friday, 17 August 2007, 11:33 PM -0700): >> >> I sure hope default module layouts and a setConfig() feature are added to >> zend_layout :( > > Ralph and I were discussing Zend_Layout yesterday. The current design > we're looking at would have a default layout, and allow specifying the > layout to use either via a setLayout() accessor or as an argument to a > render() method. > > I'll take into consideration a setConfig() feature. > >> Matthew Weier O'Phinney-3 wrote: >> > -- Kamil <[EMAIL PROTECTED]> wrote >> > (on Friday, 17 August 2007, 03:25 PM +0200): >> > > What is the status of >> > > <http://framework.zend.com/wiki/display/ZFPROP/Zend_Layout> >> Zend_Layout >> > > or Zend_View Enhanced . Before version 1.0 there was big discussion >> > > about it ,so >> > > is layout management will be in version 1.1 ? >> > >> > I'm currently in the process of reviewing Zend_Layout and >> > Zend_View_Enhanced. At this point, it looks like most of >> > Zend_View_Enhanced will be accepted with minor changes and minus the >> > layout support and Zend_View changes it suggests. I am also actively >> > working with Ralph and Padraic to finalize the Zend_Layout proposal and >> > scope. Both will be available for 1.1.0. > > -- > Matthew Weier O'Phinney > PHP Developer | [EMAIL PROTECTED] > Zend - The PHP Company | http://www.zend.com/ > > -- View this message in context: http://www.nabble.com/Zend_Layout-Status---tf4285662s16154.html#a12217687 Sent from the Zend Framework mailing list archive at Nabble.com.