Need assist Filtering Comments/Returning Errors to appropriate view. |
[eluser]dancrew32[/eluser]
Hey CodeIgniters, I'm a little new and trying to add some filtering to the inputs of content along the lines of this CMS tutorial, but I am having some difficulty: - Inserting filtered (xss_filter / prep_for_form) content to the database - Returning the errors (associated with the defined $rules) in the appropriate "Comment View" ($this->validation->error_string ![]() - Obtaining the correct "Comment View" after performing an erroneous insert_comment() method. Here is my code: ---- Controller: http://pastie.org/483538 Model: http://pastie.org/483540 View: http://pastie.org/483542 Comment View: http://pastie.org/483543 Any assists to point me in the right direction would be highly appreciated. Thank you for your time. |
Welcome Guest, Not a member yet? Register Sign In |