Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php foreach ($posts as $post): ?>
<?php if($post->image):?>
<img src="/uploads/<?php echo $post->image; ?>" class="img-thumbnail" style="width:300px;">
<?php endif;?>
<h4><?php echo $post->name; ?></h4>
<p><?php echo nl2br($post->message); ?></p>
<?php endforeach; ?>
<?php echo Pagination::instance('mypagination')->render(); ?>
</div> <!-- /container -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment