Skip to content

Instantly share code, notes, and snippets.

@slywalker
Created March 9, 2010 04:29
Show Gist options
  • Save slywalker/326185 to your computer and use it in GitHub Desktop.
Save slywalker/326185 to your computer and use it in GitHub Desktop.
diff --git a/workshop/views/posts/index.ctp b/workshop/views/posts/index.ctp
index 7892034..ed19d04 100644
--- a/workshop/views/posts/index.ctp
+++ b/workshop/views/posts/index.ctp
@@ -29,7 +29,7 @@ foreach ($posts as $post):
<?php echo $post['Post']['id']; ?>
</td>
<td>
- <?php echo $html->link($post['User']['id'], array('controller' => 'users', 'action' => 'view', $post['User']['id'])); ?>
+ <?php echo $html->link($post['User']['username'], array('controller' => 'users', 'action' => 'view', $post['User']['id'])); ?>
</td>
<td>
<?php echo $post['Post']['title']; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment