Skip to content

Instantly share code, notes, and snippets.

@ikuwow
Last active September 21, 2015 05:46
Show Gist options
  • Save ikuwow/8811593cd037eea02500 to your computer and use it in GitHub Desktop.
Save ikuwow/8811593cd037eea02500 to your computer and use it in GitHub Desktop.
HtmlHelper::linkでのURLフラグメント(#書き)の指定の仕方 ref: http://qiita.com/ikuwow/items/b8408e6fb6b96974f507
<?php
echo $this->Html->link(
"ユーザー詳細",
array(
'controller' => 'users',
'action' => 'detail',
8,
'#'=>'top'
)
);
<a href="/users/detail/8#top">ユーザー詳細</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment