megento 获取url参数

yundejia

关注

阅读 41

2023-04-03


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)

0 0 举报