[SOLVED] Multi-Select or Arrayed Values Validation |
I've tried the following two pieces of code (I've hardcoded the "passed" values into the run method for the sake of clarity):
PHP Code: $validation = \Config\Services::validation(); AND: PHP Code: $validation = \Config\Services::validation(); The idea here is that a user is selecting multiple values in a drop down and submitting them via form. However, the return call is always being executed denoting an error. How do I create a rule that validates an array of values for one field? The following works, but appears an inelegant solution: PHP Code: $validation = \Config\Services::validation();
Thank you kenjis, I completely overlooked this section.
|
Welcome Guest, Not a member yet? Register Sign In |