http://framework.zend.com/manual/en/zend.controller.dispatcher.html
The action controller method that controlls such dispatching is _forward();
call this method from any of the pre/postDispatch() or action methods,
providing an action, controller, module, and optionally any additional
parameters you may wish to send to the new action:
public function fooAction()
{
// forward to another action in the current controller and module:
$this->_forward('bar', null, null, array('baz' => 'bogus'));
}
public function barAction()
{
// forward to an action in another controller, FooController::bazAction(),
// in the current module:
$this->_forward('baz', 'foo', null, array('baz' => 'bogus'));
}
On Thu, Mar 27, 2008 at 5:50 PM, mysticav <[EMAIL PROTECTED]> wrote:
>
> basically I want this:
>
> function fooAction(){
> $var = 'test';
> $this->_forward('bar');
> }
>
> function barAction(){
> print $var; // prints 'test'
>
> }
>
> AS you can see, I want to share data from the first action.
>
> Is it possible ?
> --
> View this message in context:
> http://www.nabble.com/How-to-get-data-after-calling-%24this-%3E_forward%28%29-tp16340300p16340300.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>