Hi, thank for your answer. I've already tried to use a parameter to disable the layout, but using this method also the main layout will be disabled.
Do you know where can I see the widget view helper that you are talking about? Does it bring performance issue? Thanks Sergio Rinaudo > From: [email protected] > To: [email protected] > Date: Mon, 13 Jul 2009 09:17:44 +0200 > Subject: Re: [fw-general] FW: Using 'action' view helper > > On Monday 13 July 2009 04:52:56 Sergio Rinaudo wrote: > > Hi, > > I want to use the 'action' view helper ( $this->action([..]) ) to widgetize > > some content of a certain request. My problem is that I get the whole > > layout, not just the content I need. > > > > What shoul I do to render only the content of an action? > > Thanks > > You really shouldn't do it like that as action() helper comes with a > performance penalty, this' been discussed on this list already. You could > make > view helpers for "widget" sort of thing. > > But, to answer your question, you can set an additional param (say, noLayout: > true) in your action() call, check for that param inside the action and, if > set, disable the layout. > > -- > Dado Vesti Messenger come più ti piace. Scarica la nuova Raccolta scene! _________________________________________________________________ Naviga più semplice, più veloce e più sicuro. Scarica Internet Explorer 8 per MSN! http://cid-16be95750dd16d04.skydrive.live.com/self.aspx/le%20PV%20in%20viaggio!/89.JPG
