Magento:如何使用admin

时间:2015-10-30 12:02:03

标签: php magento redirect controller

您好我尝试从后端模块重定向magento。我使用以下查询。

$this->_redirect('*/*/');

它正常运行,但我的模块页面无法在 GET 参数中没有类别ID的情况下使用。

所以我使用以下代码

$this->_redirect('*/*/?category_id='.$category_id);

但现在这次直接进入主页。请任何人有任何解决方案吗?

1 个答案:

答案 0 :(得分:1)

$this->_redirect('*/*/', array('_query', array('category_id',$category_id));

应该做的工作,另见:https://stackoverflow.com/a/4540289/622945