Need assist Filtering Comments/Returning Errors to appropriate view. |
[eluser]dancrew32[/eluser]
[quote author="bargainph" date="1242807007"]First of all, try using the new Form_Validation Library. The Validation Library you are using has been deprecated.[/quote] I loaded that new Form_Validation library and updated the validation in the view and controller. here is the new movie_comment_view.php and Movie.php Still not sure how to get back to the add/display comments view after passing invalid data: Code: if ($this->form_validation->run() == FALSE) { Here are the errors that I'm getting after entering just a ['comment'] and leaving ['author'] blank (in an attempt to input invalid data: Errors.png |
Welcome Guest, Not a member yet? Register Sign In |