> Hello, > > Is it possible to run an action within an action? > > Let's say I have two controllers each with one action (foo and bar). > > If the user is at controller1/foo and I would like to run controller2/boo > from within foo, how would I do that? > > Do I need to create my own request object and push a new action to the > action stack? > > Thanks! >
Yes, you can use the Action Helper "ActionStack". You can find it in the manual. http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.actionstack Another option is to forward to another action with the _forward() method of the controller action. Christian
