现在的位置: 首页 > 综合 > 正文

magento——取得URL参数

2013年08月20日 ⁄ 综合 ⁄ 共 164字 ⁄ 字号 评论关闭

1
在controller中
继承Mage_Adminhtml_Controller_Action
则使用
$this->getRequest()->getParam('id');
可以到得到id传过来的值。
2
Mage::app()->getFrontController()->getRequest()->getParam('id');

抱歉!评论已关闭.