dsdukbc60905239
2013-10-07 01:26 阅读 55
已采纳

如何获取值为`/`(斜杠)的URL参数 - Magento

How to get an URL parameter with value / because I have a value

$encrypted = "Dwe/OAISUD";

www.test.com/test/test/index/encrypted/Dwe/OAISUD

then I want to get it with controller getParam('encrypted');

but in controller I get value

$encrypted = "Dwe";

How to fix that? On Magento way.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    donjd86266 donjd86266 2013-10-07 01:36
    $encrypted = urlencode("Dwe/OAISUD");
    
    点赞 评论 复制链接分享

相关推荐