Is there any script which I can edit and insert into my CI… I want to be able to add comment and rating and save it to database without reloading page..
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ajax call -> ci controller -> Controller verification -> Controller call to Model -> model handles db -> ci returns true/false back to ajax -> ajax handles accordingly.
AJAX Call:
CodeIgniter Controller called ratings: This doesn’t have any form validation, you should probably do that. before calling this, or using a conditional statement to verify.
CodeIgniter Model called comments
Incomplete code, but you get the idea.