Hi Jani,

I expected something like this with the request process.

I still have the option to call these actions with ajax so they
will be truly independent.


kr, Marko



Jani Hartikainen wrote:
> 
> The actions called with the action helper are all called
> inside the same request process as your main action, so
> you can't use Zend_Layout for giving the sub-actions different
> layouts.
> 
> Perhaps you could render the action-specific layouts inside
> the layout itself, using $this->render($layout), and calling
> the action helper inside that? Not 100% sure if that'll work
> though. Another way could be to use the layout parameter to
> simply switch to a different viewscript inside the sub action
> instead of changing the layout.
> 
> -- 
> Jani Hartikainen
> http://codeutopia.net/
> 
> On Thu, 23 Oct 2008 22:38:04 +0300, Marko Korhonen  
> <[EMAIL PROTECTED]> wrote:
> 
>> Hi,
>>
>> I make calls to another actions with action view helper.
>> $this->action(action, controller, module, params_array)
>>
>> For example, I want to call some module/controller/action for the  
>> content of
>> the left pane.
>>
>> I also pass the param "layout" in action call.
>>
>> BUT, when I expect the rendered action call rendered with layout I  
>> defined
>> as param,
>> my main view changes it's layout.
>>
>> Is this bug or expected behaviour and how should I resolve this?
>>
>> kr, Marko
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Action-helper-and-Layout-tp20138119p20138615.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to