Example #1
0
 function update_faq_answer()
 {
     $faq_model = new faq_model();
     $faq_service = new faq_service();
     $faq_model->setId($this->input->post('faq_id', TRUE));
     $faq_model->setAnswer($this->input->post('answer', TRUE));
     $faq_model->setUpdated_date("Y-m-d H:i:s");
     echo $faq_service->update_faq($faq_model);
 }