Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php foreach ($posts as $post): ?>
<div>
<?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>
</div>
<hr>
<?php endforeach; ?>
<!--
Paginationを表示する
-->
<?php echo Pagination::instance('mypagination')->render(); ?>
</div> <!-- /container -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment