[Flow] Redirects and Forwards not working inside widget?

Christian Eßl essl at incert.at
Thu Sep 26 12:25:06 CEST 2013


Is it somehow possible to use $this->redirect() or $this->forward() inside a WidgetController to redirect to another action of the same controller?

Let's say I have an indexAction() and a fooAction().

If I try to forward the user from the indexAction to the fooAction like:
------------------------------
$this->forward('foo');
------------------------------

it will just return the html of the fooActions Template. The layout of the widgets parent is missing completely.

If I try to redirect the user from the indexAction to the fooAction like:
------------------------------
$this->redirect ('foo');
------------------------------

it just returns a white page. No output at all. 
So I suppose redirects and forwards do not work for Widgets? Then what would be the best way to handle a Widget with more than one action? The AbstractWidgetController of the TYPO3.Fluid-Package doesn't tell me anything about such a feature. :( 

Greetings,
Christian


More information about the Flow mailing list