-- Dodger <[EMAIL PROTECTED]> wrote (on Monday, 05 November 2007, 11:21 AM -0800): > Sweet. I just need to do a few other things first: > > - Read the Zend_View Enhanced proposal. > - Learn what the difference is between these two proposals.
Zend_View Enhanced proposes several new view helpers, principally: * Partials * Placeholders * Actions and a variety of other helpers derived from one or more of them. Originally it had support for layouts, but that was dropped in favor of Zend_Layout. > - Improve my understanding of the link between View, ViewRenderer, and > Layout. The ViewRenderer is an integration class between Zend_Controller and Zend_View; it faciilitates adding view support to your controllers, creates a configurable way to resolve rendered views to actual view scripts, and adds inflection support so you don't have to know the full name of your view script in order to render it (or, truly, to even think about it). Zend_Layout is basically support for Two Step Views; in other words, it provides a convenient way to wrap your application views in a sitewide template. It will use the view and inflector in the ViewRenderer to do its work, as well as the placeholders from the Zend_View enhanced proposal. > BTW, I thought the plug-in and action helper would be located in > Zend/Controller? > > e.g. Zend_Controller_Action_Helper_Layout, instead of > Zend_Layout_Controller_Action_Helper. > > Not that I object, was just a little confused when trying to locate the > code. :-) Incubator is in fluid development; it may change later in the week. ;-) I was talking with Ralph about it last week, and he made a good case for it all being under the same hierarchy. One reason to do so is that this way you don't accidently call on the layout helper without having first instantiated the layout object; you typically will need to instantiate the layout object first so that you can configure things such as the layout script name, view script path to use, etc. (I'll likely do the same with the view helper for the same reason.) The other reason is so that the various layout classes are all grouped. > Matthew Weier O'Phinney-3 wrote: > > > > <note: following is regarding Zend_Layout> > > > > I mostly finished the implementation last night; just a few minor things > > to finish, and testing to do. Please give it a spin. :-) -- Matthew Weier O'Phinney PHP Developer | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/