Custom validation method - Issue with error message. |
Hello - Actually I have loaded the form validation library in the constructor. The above code was just copied & pasted from the CI documentation as my code was very identical except as mentioned below. http://www.codeigniter.com/userguide3/li...on-methods
This rule in the example above works fine so I was wrong to say it doesn't work. I had used an additional rule "email" which was a typo as it should have been "valid_email" and that was causing this error for me. This is what I had in my rules list. Code: $this->form_validation->set_rules('username', 'Username', 'email|callback_username_check'); So basically, everything works well. My typo created the problem for me. Please close my thread. Thank you. |
Messages In This Thread |
Custom validation method - Issue with error message. - by happyape - 05-31-2016, 07:27 AM
RE: Custom validation method - Issue with error message. - by Avenirer - 05-31-2016, 07:37 AM
RE: Custom validation method - Issue with error message. - by happyape - 05-31-2016, 08:14 AM
|