try return $this->myAction();
Most of the time I do not do this though for eaxmple:
if(false === $this->_catalogModel->saveCategory($request->getPost())) {
$this->view->categoryForm = $this->_getCategoryForm();
return $this->render('addcategory');
}
Here rather than call the addcategoryAction, I render the addcategory
view instead.
2009/4/14 Jan Pieper <[email protected]>:
> Yeah, but than the view script won't be changed.
>
> -------- Original-Nachricht --------
>> Datum: Tue, 14 Apr 2009 12:33:48 +0100
>> Von: keith Pope <[email protected]>
>> An: Jan Pieper <[email protected]>
>> CC: [email protected]
>> Betreff: Re: [fw-general] _forward(): multiple controller instanciation
>
>> If you are in the same control don't forward, just call the method?
>>
>> 2009/4/14 Jan Pieper <[email protected]>:
>> > Why is it needed to create a new controller instance for each forwarding
>> from one action to another without changing the controller and/or module?
>> My init()-functionality is not able to handle multiple calls. Okay I can
>> change it to avoid twice execution but why is it needed to have multiple
>> instances of one and the same controller?
>> >
>> > Best regards,
>> > Jan
>> > --
>> > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
>> allen: http://www.gmx.net/de/go/multimessenger01
>> >
>>
>>
>>
>> --
>> ----------------------------------------------------------------------
>> [MuTe]
>> ----------------------------------------------------------------------
>
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:
> http://www.gmx.net/de/go/multimessenger01
>
--
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------