Feature #3790

Generic error action and validation errors for current request

Added by Christopher Hlubek about 6 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2009-06-28
Priority:Should have Due date:
Assigned To:Christopher Hlubek % Done:

100%

Category:MVC
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 2
PHP Version: Complexity:
Has patch:

Description

The user shouldn't have to write a custom error action (altough it should still be possible) for handling argument mapping errors in the ActionController.

A generic errorAction should forward to the last action and set the argument mapping errors in the request (I propose $request->getErrors() for accessing the errors, but this must be discussed). The errors can then be retrieved in the form view helpers and special view helpers for rendering error messages.

Associated revisions

Revision 46e8f7c6
Added by Christopher Hlubek about 6 years ago

  • [FIX] FLOW3 (MVC): Arguments are reset on each call to processRequest, fixes #3795
  • [FIX] FLOW3 (MVC): Fixed wrong type hints in AbstractController and added the param for redirect arguments
  • [+FEAT] FLOW3 (MVC): Implemented a generic error action for the ActionController with automatic forwarding to the referrer action and with storage of errors in the request. Resolves #3790

Revision 028f0bf7
Added by Christopher Hlubek about 6 years ago

[FIX] FLOW3 (MVC): Fixed test for error action that used Arguments object for forward, refs #3790

History

#1 Updated by Christopher Hlubek about 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2659.

Also available in: Atom PDF