public function showComments() { $model = new Comments(); $comments = $model->loadComments(); include 'view/comments/comment_holder.php'; }
private function __loadComments($metaPoziadavkaID) { return Comments::loadComments($metaPoziadavkaID); }
<hr/> <tbody> <table class="table table-striped table-bordered table-hover table-responsive"> <thead> <tr> <th style="color:green">Customer Name</th> <th style="color:green">Email Address</th> <th style="color:green">Message</th> <th style="color:red;"colspan="2">Actions</th> </tr> </thead> </tbody> <?php $ev = new Comments(); $list_of_comment = array(); $list_of_comment = $ev->loadComments($pagination->per_page, $pagination->offset()); foreach ($list_of_comment as $comm) { ?> <tr> <td><?php echo $comm->customer_name; ?> </td> <td><?php echo $comm->email; ?> </td> <td><?php echo $comm->message; ?> </td>