示例#1
0
 function add_reply()
 {
     $this->load->model('reply_m');
     $reply_m = new Reply_m();
     //        $description = $this->input->get('reply_description');
     //        $user_id = $this->input->get('user_id');
     //        $comment_id = $this->input->get('comment_id');
     $reply_m->add_reply(2, 2, "This is my test reply comment");
 }
示例#2
0
 function add_reply()
 {
     $this->load->model('reply_m');
     $reply_m = new Reply_m();
     $comment_id = $this->input->post('comment_id');
     $reply = $this->input->post('reply');
     $user_id = $this->session->userdata('userId');
     if ($user_id) {
         $reply_m->add_reply($user_id, $comment_id, $reply);
     } else {
         echo "error";
     }
 }