Skip to content

Instantly share code, notes, and snippets.

@slywalker
Created March 9, 2010 04:30
Show Gist options
  • Save slywalker/326188 to your computer and use it in GitHub Desktop.
Save slywalker/326188 to your computer and use it in GitHub Desktop.
diff --git a/workshop/views/posts/view.ctp b/workshop/views/posts/view.ctp
index df8a9dc..f5df297 100644
--- a/workshop/views/posts/view.ctp
+++ b/workshop/views/posts/view.ctp
@@ -8,7 +8,7 @@
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
- <?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'])); ?>
&nbsp;
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Title'); ?></dt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment