![]() |
Validation Rules Group Error - 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: Validation Rules Group Error (/showthread.php?tid=86752) |
Validation Rules Group Error - ailerux - 02-15-2023 I have a 4.0.4 project i am trying to port to 4.3.1 and so far so good except I am getting the error: I believe 'login' is referring to my controller method authentication/login Code: login is not a validation rules group The offending line is here... was there a change between 4.0.4 and 4.3.1 that broke this? PHP Code: if (!$validation->withRequest($this->request)->run($_POST, 'login')) { } This is being called from AJAX: Code: $.ajax({ RE: Validation Rules Group Error - kenjis - 02-15-2023 (02-15-2023, 05:40 PM)ailerux Wrote: I believe 'login' is referring to my controller method authentication/login No, 'login' is the pre-defined group of rules to apply. See https://codeigniter4.github.io/CodeIgniter4/libraries/validation.html#saving-sets-of-validation-rules-to-the-config-file RE: Validation Rules Group Error - ailerux - 02-15-2023 This is my Validation.php PHP Code: //-------------------------------------------------------------------- |