Form Validation - Associating a Controller Function with a Rule Group doesn't work |
[eluser]oplan[/eluser]
Hi'm pretty new to CI and i'm pretty impressed Full respect to all involved ! Right now i'm trying to follow tutorial: http://ellislab.com/codeigniter/user-gui...ngtoconfig everything worked fine untill i've tried to associate a controller function with a rule group placed in my config/form_validation.php file my controller: Code: <?php Code: <?php and my form_validation config file: Code: $config = array( i can't see what's wrong :down: can anybody help? thanka a lot
[eluser]oplan[/eluser]
no error, after submitting form with incorrect data just blank page appears
[eluser]Kamarg[/eluser]
I believe the issue is that your function is called insert_user but in your config you're calling it just insert. Try making it user/insert_user in the config file.
[eluser]oplan[/eluser]
is there some debug funcionality i can turn on to see what's posted or somethin like that?
[eluser]Kamarg[/eluser]
I seem to have missed your post saying you were getting a blank page. That sounds like you have an issue that's separate from the form validation. In your main index.php file, try turning error reporting to E_ALL and see if you get any error messages.
[eluser]danmontgomery[/eluser]
Code: if ($this->form_validation->run() == FALSE) { Just guessing that is because the only output you're trying to generate is an undefined function. This should be: Code: if ($this->form_validation->run() == FALSE) {
|
Welcome Guest, Not a member yet? Register Sign In |