validation_errors |
(06-13-2024, 01:05 PM)elephpantech Wrote: Why the function validation_errors() in form helper does not work with In-Model Validation? A Model has its own Validation instance. Because you can use many Models in a request. For example, If you have used two Models, there are two Validation instance. validation_errors() checks the shared Validation instance by CI4 Services. The shared Validation instance is a different instance from the Validation instances in the Models. After all, there is no way that validation_errors() gets the Validation instance that you want to show the error. |
Messages In This Thread |
validation_errors - by elephpantech - 06-13-2024, 01:05 PM
RE: validation_errors - by ozornick - 06-13-2024, 01:15 PM
RE: validation_errors - by kenjis - 06-13-2024, 03:50 PM
RE: validation_errors - by elephpantech - 06-18-2024, 07:00 AM
|