Ejemplo n.º 1
0
 public function deleteAction()
 {
     $userip = $_SERVER['REMOTE_ADDR'];
     $post = $this->input->post();
     $fBPost = new FacebookPosts();
     $fBPost->trash($post['id']);
     $fBComment = new FacebookComment();
     $fbComment = FacebookComment::prepare("DELETE FROM facebook_posts_comments WHERE post_id =  ? ");
     $fbComment->execute(array($post['id']));
     echo $fbComment->rowCount();
 }