form_validation problem : don't work ?? |
[eluser]ludo31[/eluser]
Hello ; I never found whta's wrong with my code but I have form in view and in controller and I would like to validate the data but the message of error doesn't appear . so my view is : folder views>annonce>annonce.php and in annonce.php(view file ) Code: <body> in my controller : Code: class Annonce extends CI_Controller { when I try echo 'non conforme '; exit ; instead of $this->load->view('annonce/annonce_vue'); it writes Quote:non conforme and in view file I try to make like this Code: <?php echo form_input('titre', ''); ?> but the message of error doesn't appear !! I load in config Code: $autoload['libraries'] = array('database','encrypt','pagination','session','cart','email','form_validation'); thanks
[eluser]InsiteFX[/eluser]
In your view there are two ways to display validation errors. Code: // Setting error messages
[eluser]ludo31[/eluser]
but I do that in my code !! I found the problem ; form validation is only working in form_open() not form_open_multipart() so I must create my own function for that and use callbacks http://ellislab.com/codeigniter/user-gui...#callbacks |
Welcome Guest, Not a member yet? Register Sign In |