Issue with form validation - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Issue with form validation (/showthread.php?tid=21394) |
Issue with form validation - El Forum - 08-08-2009 [eluser]Ci beginner[/eluser] --- Issue with form validation - El Forum - 08-08-2009 [eluser]skunkbad[/eluser] $this->validation->set_rules() should be $this->form_validation->set_rules() also, your array for configuring bulk rules is not correct, see the docs Issue with form validation - El Forum - 08-08-2009 [eluser]Ci beginner[/eluser] --- Issue with form validation - El Forum - 08-08-2009 [eluser]skunkbad[/eluser] I don't see a reason why the callback wouldn't get called, but for instance, in your username check callback, you wouldn't just return TRUE, you would return $username. Then you use set_value() to use that validated and potentially modified value. Maybe just returning true isn't good enough. |