简体   繁体   中英

How to get an URL parameter with value `/` (slash) - 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.

$encrypted = urlencode("Dwe/OAISUD");

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.

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