Problem with form_error() -function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Problem with form_error() -function (/showthread.php?tid=27739) |
Problem with form_error() -function - El Forum - 02-19-2010 [eluser]mjstenbe[/eluser] Hi, Im new to CI and am currently learning the system and its capabilities. I was reading through the documentation and tried to implement a simple form with validation. The basic functionality seems to be working ok, but I cant seem to get any output from form_error() function to display field spesific errors? The $this->validation->error_string does work fine, however, and prints out all the errors at once. Whats wrong here? Below is my code for the view. Code: <h1>Entering user data</h1> Code: class Validator extends Controller { Thanks for any help. Problem with form_error() -function - El Forum - 02-19-2010 [eluser]rogierb[/eluser] It seems you are using the old deprecated validation library. You should be using the Form Validation library (no it's not confusing, really...) Then a lot of helpers suddenly appear to be working, among which is form_error(); Again, it's not confusing... at all! ;-) |