![]() |
Form Validation Errors Not Showing? - 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: Form Validation Errors Not Showing? (/showthread.php?tid=56206) |
Form Validation Errors Not Showing? - El Forum - 12-03-2012 [eluser]Unknown[/eluser] Code: public function test() Can anyone help me figure out why this is not working? Form Validation Errors Not Showing? - El Forum - 12-03-2012 [eluser]alvaroeesti[/eluser] in what it is failing? And have you loaded the validation library? The library checks for errors it looks like you wanted to echo a correct value try it the other way around, put == FALSE and try to enter a wrong value Form Validation Errors Not Showing? - El Forum - 12-03-2012 [eluser]seegan[/eluser] // Just code like this.. Code: public function test() //You need to load 'form_validation' library Form Validation Errors Not Showing? - El Forum - 12-04-2012 [eluser]Unknown[/eluser] // Just code like this.. Code: public function test() Form Validation Errors Not Showing? - El Forum - 12-05-2012 [eluser]N3XT0R[/eluser] if you load in your controller-class inside the constructor any models, check if one of the models extends the ci_controller. Little time ago i done the mistake/fail and tried to load a model wich extends from the ci_controller.... <-- yes fail If you do something like this, the form_validation will return a right value, but your form_validation error will not be displayed in your view. validation_errors() will return a String with a length of 0. |