Zend framework _forward function question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
antonM
Forum Newbie
Posts: 1
Joined: Wed Apr 22, 2009 5:44 am

Zend framework _forward function question

Post 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!
Post Reply