[FLOW3-general] Redirect on form create action

Bastian Waidelich bastian at typo3.org
Thu Apr 5 13:33:48 CEST 2012


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


More information about the FLOW3-general mailing list