Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 136a401551
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (20 sloc) 0.51 kb
<h1>Blog posts</h1>
<?php echo $html->link('Add Post','/posts/add')?>
<!-- Here is where we loop through our $posts array, printing out post info -->
<?php foreach ($posts as $post): ?>
<td><?php echo $post['Post']['id']; ?></td>
<?php echo $html->link($post['Post']['title'],
"/posts/view/".$post['Post']['id']); ?>
<td><?php echo $post['Post']['created']; ?></td>
<?php endforeach; ?>
Jump to Line
Something went wrong with that request. Please try again.