Page 1 of 1

Zend framework _forward function question

Posted: Wed Apr 22, 2009 5:57 am
by antonM
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!