Welcome Guest, Not a member yet? Register   Sign In
Validating multidimensional arrays
#2

Hi,

CodeIgniter 2.2.1 is very buggy compared to the latest stable release. There have been huge improvements to CI since the 2.x branch. Perhaps you should consider upgrading?

However, in the meantime, if the array method is not working then perhaps you can run through the values in the array, setting a validation rule for each value in your own loop. That would then perhaps validate all the values in your array in the normal way, avoiding any potential bugs, if it is a bug.

Hope that helps,

Best wishes,

Paul


Here are some bug fixes from the changelog to encourage an upgrade:
Fixed a bug (#79) - Form Validation Library didn’t properly validate array fields that use associative keys or have custom indexes
Fixed a bug (#1624) - Form Validation Library rule matches didn’t property handle array field names.
Fixed a bug (#113) - Form Validation Library didn’t properly handle empty fields that were specified as an array.

Take a look at all the great stuff in CI3:
https://www.codeigniter.com/userguide3/changelog.html
Reply


Messages In This Thread
Validating multidimensional arrays - by adnnor - 10-20-2015, 02:49 AM
RE: Validating multidimensional arrays - by PaulD - 10-20-2015, 09:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB