Last active
September 21, 2015 05:46
-
-
Save ikuwow/8811593cd037eea02500 to your computer and use it in GitHub Desktop.
HtmlHelper::linkでのURLフラグメント(#書き)の指定の仕方 ref: http://qiita.com/ikuwow/items/b8408e6fb6b96974f507
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo $this->Html->link( | |
"ユーザー詳細", | |
array( | |
'controller' => 'users', | |
'action' => 'detail', | |
8, | |
'#'=>'top' | |
) | |
); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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