Codeigniter Passing Extra Parameters to Custom Validation Rule |
According to this documentation, how can I pass second parameter to the rule method?
This is my custom rule PHP Code: public function email_exists($email, $exclude_id=NULL) and this is how i call it from controller PHP Code: $rules = [ How can I pass second parameter to email_exists method?
Maybe something like this:
PHP Code: $second_param = 'whatever'; (07-17-2017, 11:07 AM)skunkbad Wrote: Maybe something like this: It works. Thanks a lot sir. |
Welcome Guest, Not a member yet? Register Sign In |