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? |
Messages In This Thread |
Codeigniter Passing Extra Parameters to Custom Validation Rule - by sentinel - 07-17-2017, 06:39 AM
RE: Codeigniter Passing Extra Parameters to Custom Validation Rule - by skunkbad - 07-17-2017, 11:07 AM
RE: Codeigniter Passing Extra Parameters to Custom Validation Rule - by sentinel - 07-17-2017, 12:23 PM
|