We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
what are the possible errors? What was the field? Defer the message text to the view Validation should throw a single exception
$errors = [ 'fieldname' => [ 'errorType1', 'errorType2', 'errorType3 ], 'otherField' => [ 'otherFielderror', 'otherFieldProblem' ] ];
Model should define the validation fields and possible errors. Model should implement the validation check
Controller tries to save, catches the exception, Passes the exception to the SESSION, and lets the form render
Model save triggers validation
$_SESSION['messages']['validation'] = $errors;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
what are the possible errors?
What was the field?
Defer the message text to the view
Validation should throw a single exception
Model should define the validation fields and possible errors.
Model should implement the validation check
Controller tries to save, catches the exception,
Passes the exception to the SESSION, and lets the form render
Model save triggers validation
$_SESSION['messages']['validation'] = $errors;
The text was updated successfully, but these errors were encountered: