Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php echo $this->Html->link($post['Post']['total_comments'].' comments', array('controller' => 'posts', 'action' => 'view', $post['Post']['slug'].'#comments'),array('class' => 'comments-icon')); ?>
- echo $this->Html->link($post['Post']['total_comments'].' comments', array(
- 'controller' => 'posts',
- 'action' => 'view',
- $post['Post']['slug'],
- '#' => 'comments' //Or #comments only without key
- ), array('class' => 'comments-icon'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement