Input array problem in class validation - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Input array problem in class validation (/showthread.php?tid=76909) |
Input array problem in class validation - hugoafr - 07-01-2020 Hello, Sorry for the inconvenience, when migrating my applications from CI3 to CI4, validations with input form as array do not work. I am trying to correct the system / validation / validation.php file Sorry for the English, I don't know much. PHP Code: This way it doesn't work RE: Input array problem in class validation - marcogmonteiro - 07-02-2020 hi there, the validation is not done with [] but with dots. Like so: https://codeigniter.com/user_guide/libraries/validation.html?highlight=validation#validating-keys-that-are-arrays So instead of foo[bar] your would use foo.bar. RE: Input array problem in class validation - hugoafr - 07-02-2020 (07-02-2020, 01:15 AM)marcogmonteiro Wrote: hi there, the validation is not done with [] but with dots.Thank you very much friend, I did not look at that detail in the manual, I will do the test. I had come up with those solutions momentarily, but in the manual it was clear XD PHP Code: system / validation / validation.php, function run() |