Welcome Guest, Not a member yet? Register   Sign In
Custom validation method - Issue with error message.
#3

(This post was last modified: 05-31-2016, 08:21 AM by happyape.)

Hello - Actually I have loaded the form validation library in the constructor. Smile 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.
Reply


Messages In This Thread
RE: Custom validation method - Issue with error message. - by happyape - 05-31-2016, 08:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB