my url :
<?php echo $this->Html->link('#', array('controller' => 'my_controller', 'action' => 'my_action', "#" => '#'));?>
I would like to display :
http://...../index##
but it's display :
http://...../index#%23
I tried urldecode, htmlentities() function, but not work. thanks for your help.
the second hash (#) is normal, it's for an alphabetical classement :
# - A - B - C ... x - Y - Z.
Your assumption/expectation is flawed. The latter is correct - there must only be a single hash (#) in your URL. The rest must be correctly encoded. So CakePHP behaves as it should.
第二个哈希(#)是正常的,用于字母分类:
# - A - B - C ... x - Y - Z.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.