Validation problem - Config | Callback | Controller |
[eluser]Multisnet[/eluser]
I need some help please.. I'm dealing with validation. After read the User Guide topic I decided to create a config file with rules for validation. form_validation.php example: Code: $config = array( in the controller I use Code: if ($this->form_validation->run('registoPaciente') == FALSE) The problem is in the callback verificaEmail. In the controller I implemented this method for test Code: function verificaEmail($str) When I run the application the Test message is displayed, however it return this error for the email field: Unable to access an error message corresponding to your field name. Could you help me? PS:Some expressions are in Portuguese but I think that I translated everything relevant. Thanks in advance |
Welcome Guest, Not a member yet? Register Sign In |