function removeComment($post_id) { $model = new Comment_Model(); $x = $model->removeComment(Session::get('id'), $post_id); if ($x == true) { echo 'Comment successfuly removed'; header("Location:" . URL . "/post/newsfeed"); } else { echo 'error'; } exit; }