public function deleteCommentAction() { $userip = $_SERVER['REMOTE_ADDR']; $post = $this->input->post(); $fbComment = new FacebookComment(); $fbComment->trash($post['id']); }
<?php use Cygnite\AssetManager\Asset; use Cygnite\Common\UrlManager\Url; use Apps\Components\Wallscript\Time\TimeStamp; use Apps\Models\FacebookPostsComments as FBComment; foreach ($posts as $post) { $comments = FBComment::findBySql("SELECT * FROM facebook_posts_comments where post_id = " . $post->p_id . " order by c_id asc"); ?> <script type="text/javascript"> $(document).ready(function(){ $("#stexpand<?php echo $post->p_id; ?> ").oembed('<?php echo htmlentities($post->post); ?> ',{maxWidth: 400, maxHeight: 300}); }); </script> <div class="friends_area" id="record-<?php echo $post->p_id; ?> "> <img src="<?php echo Url::getBase(); ?> assets/img/sanjoy_profile_post.jpg" style="float:left;" alt="" />