Use validation without saving the form data to the database |
Is it possible to use validation without necessarily having to save the data in the database, but only check if the data sent meets the rules?
I need to check that the form contains data according to certain rules, but I don't have to save it, but return it to javascript to append an element, only if I pass the validation How can I perform the validation without performing an insert or an update?
The Validation class is a stand alone library. You can use it without database.
See https://codeigniter4.github.io/CodeIgnit...ation.html
(10-28-2022, 05:18 PM)kenjis Wrote: The Validation class is a stand alone library. You can use it without database. Thanks, I was immersed in In-Model Validation and had the thing removed |
Welcome Guest, Not a member yet? Register Sign In |