Skip to content
New issue

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

Bug: #2448

Closed
SunilEver opened this issue Dec 10, 2019 · 1 comment
Closed

Bug: #2448

SunilEver opened this issue Dec 10, 2019 · 1 comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@SunilEver
Copy link

Describe the bug
$validationMessages fields on CodeIgniter\Model is an overkill. One can always set error messages on $validationRules using errors key

CodeIgniter 4 version
v4.0.0-rc.3

Affected module(s)
Codeigniter\Model

Context

  • OS: Ubuntu 5.4.0-6ubuntu1~16.04.12
  • Web server: php inbuilt server
  • PHP version : 7.3
@SunilEver SunilEver added the bug Verified issues on the current code behavior or pull requests that will fix them label Dec 10, 2019
@MGatner
Copy link
Member

MGatner commented Dec 10, 2019

$validationMessages allows errors to be set on-the-fly by the setValidationMessages() method, allowing Controllers to provide their own messages that would not ordinarily be available if using the errors key in $validationRules.

@MGatner MGatner closed this as completed Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

2 participants