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

Reply via email to