Showing form validation errors through logic |
[eluser]Rein Van Oyen[/eluser]
Hello all, I'm fairly new to CodeIgniter. I like it so far, but sometimes I run into small problems. I'm making a simple login system to wrap around my admin-systems. I'm using the form validation class to show an error on top of the page when a form doesn't validate. How can I manually set an error. Even if the rules for the form were passed? This is the code in my controller; Code: $this->form_validation->set_rules('username', 'gebruikersnaam', 'required'); Would something like below be possible? Code: if($auth){ Edit: Sorry for posting this in the wrong forums
[eluser]kirkaracha[/eluser]
How to add your own custom errors to the form validation class |
Welcome Guest, Not a member yet? Register Sign In |