Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Null Values in Validations
Post: RE: Null Values in Validations

includebeer Wrote: (12-18-2020, 04:56 AM) -- Try the rule ‘permit_empty’. http://codeigniter.com/user_guide/libraries/validation.html#available-rules -- Oh! thank you, I didn't see that rule, mayb...
1,980 Views
2 Replies
12-18-2020, 10:20 AM
Misael Picco
    Thread: Null Values in Validations
Post: 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...
1,980 Views
2 Replies
12-16-2020, 01:01 PM
Misael Picco
    Thread: Form Validartion with input array
Post: RE: Form Validartion with input array

It looks like in CodeIgniter 4.0.3 they solve this, I was using 4.0.2.
4,423 Views
7 Replies
05-25-2020, 06:57 PM
Misael Picco
    Thread: Form Validartion with input array
Post: RE: Form Validartion with input array

jreklund Wrote: (05-11-2020, 11:19 AM) -- Hmm, interesting. Didn't even know that where possible, but the userguide says it is (and looks like it does in the source code too). Have no recollection if...
4,423 Views
7 Replies
05-11-2020, 12:20 PM
Misael Picco
    Thread: Form Validartion with input array
Post: RE: Form Validartion with input array

jreklund Wrote: (05-11-2020, 10:10 AM) -- Those function only works with an string, as the error messages states. You need to create your own validation rule, that foreach your array and on each item...
4,423 Views
7 Replies
05-11-2020, 11:20 AM
Misael Picco
    Thread: Form Validartion with input array
Post: RE: Form Validartion with input array

jreklund Wrote: (05-11-2020, 10:10 AM) -- Those function only works with an string, as the error messages states. You need to create your own validation rule, that foreach your array and on each item...
4,423 Views
7 Replies
05-11-2020, 11:05 AM
Misael Picco
    Thread: Form Validartion with input array
Post: Form Validartion with input array

Hello! I'm beginning to work with CI4 and I got a problem with Form Validation, I'm working with an input array called "tags[]" but the problem is when the validation runs. If I use: PHP Code: --...
4,423 Views
7 Replies
05-11-2020, 09:21 AM
Misael Picco

Theme © iAndrew 2016 - Forum software by © MyBB