Beispiel #1
0
 function change_publish_status()
 {
     $comments_model = new Comments_model();
     $comments_service = new Comments_service();
     $comments_model->set_id(trim($this->input->post('id', TRUE)));
     $comments_model->set_is_published(trim($this->input->post('value', TRUE)));
     echo $comments_service->publish_comment($comments_model);
 }