Required 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: Required Validation (/showthread.php?tid=70571) |
Required Validation - scalla - 04-28-2018 I was testing the required_without validation rule, then I observed it's not working as I thought it is/was supposed to. I was expecting the rule to return a required response if the field passed into the rule does not exit in the form or the field is empty, just like laravel does. Please do enlighten me. RE: Required Validation - kilishan - 04-29-2018 You're right, that's how it should work. If it doesn't currently, please post an issue with details and code examples. RE: Required Validation - Leo - 04-01-2020 Hello, this doesn't work for me either, or I am doing something wrong. I checked the issues on it in Github and they're all closed... PHP Code: $validation = \Config\Services::validation(); |