コード例 #1
0
ファイル: comments.php プロジェクト: nadee894/AutoVille
 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);
 }