简体   繁体   English

在codeigniter中使用反斜杠锚定href创建

[英]anchor tag href creation with backslash in codeigniter

I want to pass RXKJ/00000004/2013 with my url in codeigniter. 我想在我的URL中将RXKJ/00000004/2013传递RXKJ/00000004/2013 codeigniter。 I have done 我已经做好了

'<a href="'.base_url().'policy/manage/policy/riskDetails/'.urlencode('RXKJ/00000004/2013').'">RXKJ/00000004/2013</a>'

but not working. 但不起作用。

You can encode any variable using base64_encode and decode using base64_decode......... 您可以使用base64_encode编码任何变量,并使用base64_decode解码.........

$encoded = base64_encode($variable]);

$decoded = base64_decode($encoded);

You can find more about Base64_encode 您可以找到有关Base64_encode的更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM