0
点赞
收藏
分享

微信扫一扫

megento 获取url参数

yundejia 2023-04-03 阅读 41


if we have the following requirement:

http://host/index.php/?resid=anyvalue    

http://host/index.php/storeviewname/?resid=anyvalue, or ......?resid=anyvalue

 

//get all Parameters.
$this->getRequest()->getParams()

//get any specifically
$this->getRequest()->getParam(KEY) .

//Ex:  $this->getRequest()->getParam('resid')

 


举报

相关推荐

0 条评论