[FLOW3-general] Redirect on form create action
Thomas Plessis
t.plessis at totemnumerique.com
Fri Apr 6 15:02:27 CEST 2012
Thx Bastian! Overriding errorAction was the solution! :)
Thomas Plessis
Développeur multimédia
--
TOTEMnumerique
9, Place St Étienne
31000 Toulouse
T. 05 61 14 64 54
F. 05 61 14 64 55
Le 5 avr. 2012 à 13:33, Bastian Waidelich a écrit :
> Thomas Plessis wrote:
>
> Hi Thomas,
>
>> Is there a way to avoid redirection to original form when createAction throws an error? I want to stay in the create action.
>>
>
> You could either skip validation by adding a
> @FLOW3\IgnoreValidation("$argumentName")
> annotation to your createAction (see [1]).
> Or you could override the errorAction of the default ActionController [2].
>
> HTH
>
> [1] http://flow3.typo3.org/documentation/guide/partii/validation.html#validating-updated-arguments
> [2] http://git.typo3.org/FLOW3/Packages/TYPO3.FLOW3.git?a=blob;f=Classes/MVC/Controller/ActionController.php;h=02ca2e43bc8d8b6409a8cb76b2d9468fb17f5fa5;hb=HEAD#l387
> --
> Bastian
> _______________________________________________
> FLOW3-general mailing list
> FLOW3-general at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
More information about the FLOW3-general
mailing list