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-tp23173951p23175279.html
Sent from the Zend Framework mailing list archive at Nabble.com.