Codeigniter 4 Custom Data Validation Rule Creation
Budget: $10 – $30 AUD
I need a Codeigniter 4 Rule that mirrors the functionality of Codeigniter 3, specifically its custom callback function.
I do not want to use a Rules Class.
I require someone to show me how to create a rule that can call a function to do the validation and return back the custom message and boolean result. This function call needs to be able to have additional variables passed to it, on top of the standard rules $value, $data, $error and $field.
It appears using Closure Rules it doesn't like references outside of its scope and I couldn't work out how to passed additional variables.
Note that I am only wanting someone to show me/write for me a Rule in CI4
I do not want to use a Rules Class.
I require someone to show me how to create a rule that can call a function to do the validation and return back the custom message and boolean result. This function call needs to be able to have additional variables passed to it, on top of the standard rules $value, $data, $error and $field.
It appears using Closure Rules it doesn't like references outside of its scope and I couldn't work out how to passed additional variables.
Note that I am only wanting someone to show me/write for me a Rule in CI4