hi lightflowmark, thanks for your idea. but no, i said i do not want to pass
parameters. passing a parameter would mean i have to handle it the parameter
from the forwarded action. if i want to change the layout of the forwarded
action and pass the layout that should be used then the forwarded action
should get that parameter and do the actual changing of the layout.
Instead, what I want to do is to be able to control the forwarded action and
explicitly tell it to use another layout.
lightflowmark wrote:
>
> You can pass parameters as the 4th arg to _forward:
> $this->_forward('foo', 'bar', 'module',$this->getRequest()->getParams());
>
>
>
>
>
>
> antonM wrote:
>>
>> Hi, I was wondering whether it's possible to communicate with the
>> forwarded action in calling the _forward function.
>>
>> for example:
>>
>> class someController extends Zend_Controller_Action {
>> public function someAction() {
>> $this->_forward('foo', 'bar', 'module');
>> }
>> }
>>
>> Specifically, I want to set the layout of the '/module/bar/foo/' action
>> that's why I was figuring if there's a way to communicate or control it
>> from the someAction() function. I don't wanna pass parameters when
>> calling the forwarded action because I don't want to bother its code.
>> That's why I need to control it from the someAction() function.
>>
>> Is that possible? Hope you can help. Thanks!
>>
>
>
--
View this message in context:
http://www.nabble.com/communicating-with-forwarded-action-tp23173951p23175438.html
Sent from the Zend Framework mailing list archive at Nabble.com.