Validation | trim causes 500: Internal Server Error |
The validation rule trim does not exist from the beginning.
But you can use any native PHP functions that return boolean and permit at least one parameter. Quote:Note But trim does not return boolean, so you cannot use it as a validation rule. In CI3, you could use trim as a rule, because CI3 modified the data to validate. But CI4 Validation does not modified any data to validate, so your rule 'trim|max_length[...' is a misuse or does not make sense. Because the rule trim does nothing. |
Messages In This Thread |
Validation | trim causes 500: Internal Server Error - by Gary - 04-26-2024, 05:09 AM
RE: Validation | trim causes 500: Internal Server Error - by kenjis - 04-27-2024, 04:34 AM
RE: Validation | trim causes 500: Internal Server Error - by Gary - 04-27-2024, 03:24 PM
|