placeholder + render are what you need. capture the output into placeholders then render the sublayout
or you can try my kludgy template inheritance view helper+filter combo. http://monzee.wordpress.com/2009/10/31/zend_layout-vs-template-inheritance/ -- Mon On Fri, Feb 5, 2010 at 3:18 AM, Andrei Iarus <[email protected]> wrote: > In this case, should I call the helper from each action view? > > I have another idea: to make from bootstrap so that, the module action > views will be rendered by default in another segment name, and than to add > at the end of the dispatch process the action for creating the sublayout. > > --- On *Thu, 2/4/10, Vadim Gabriel <[email protected]>* wrote: > > > From: Vadim Gabriel <[email protected]> > Subject: Re: [fw-general] Double Layout (layout in layout) > To: "Andrei Iarus" <[email protected]> > Cc: "Zend Framework" <[email protected]> > Date: Thursday, February 4, 2010, 6:45 PM > > > Just make a helper out ofit. > > On Thu, Feb 4, 2010 at 5:16 PM, Andrei Iarus > <[email protected]<http://us.mc517.mail.yahoo.com/mc/[email protected]> > > wrote: > >> Hello to all, >> >> I have no idea about how to make a module to have a "sublayout". Having an >> application layout, one of my modules needs to add insinde that layout >> always some (dynamic) content, and of course, the controller's action will >> add its own content in this "sublayout". >> >> Could someone share some ideas on that? At least some small steps? >> >> Thanks in advance. >> >> > > > -- > Vincent Gabriel. > Lead Developer, Senior Support. > Zend Certified Engineer. > Zend Framework Certified Engineer.. > -- Email: > [email protected]<http://us.mc517.mail.yahoo.com/mc/[email protected]> > -- Phone: +972-52-3808258 > -- Website: http://www.vadimg.com > > >
