Null Values in Validations |
Hi! I have noticed that some rules like in_list, numeric, integer, doesn't accept NULL or empty values because it throws an error (I think CI3 accepts them). That makes the value to be required always, I think it shouldn't be like that because for that purpose already exist the required rule, is it supposed to work this way? what can I do to change that behavior?
Thanks!
Try the rule ‘permit_empty’.
http://codeigniter.com/user_guide/librar...able-rules
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
(12-18-2020, 04:56 AM)includebeer Wrote: Try the rule ‘permit_empty’. Oh! thank you, I didn't see that rule, maybe I'm blind. |
Welcome Guest, Not a member yet? Register Sign In |