Required Validation |
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.
You're right, that's how it should work. If it doesn't currently, please post an issue with details and code examples.
04-01-2020, 10:51 AM
(This post was last modified: 04-01-2020, 10:55 AM by Leo. Edit Reason: Clarity )
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();
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
|
Welcome Guest, Not a member yet? Register Sign In |