2013-03-26 62 views
5

我正在处理自定义模块。我尝试将我的模块重定向到magento目录类别页面。的链接,该页面是在magento中重定向

http://localhost/project/index.php/admin/catalog_category/index/key/cc65595b0383ca64fb245cb7de2359d8/

我曾尝试以下没有成功的方法。

$this->_redirect($this->getUrl("admin/catalog_category/")); $this->_redirect("admin/catalog_category/");

的Magento是从网址中删除管理员?最终网址看起来像

http://localhost/project/index.php//catalog_category/index/key/cc65595b0383ca64fb245cb7de2359d8/

我也没弄明白,为什么管理员从我的网址跳过?谁能帮忙?

回答

3

请尝试以下代码。

$this->_redirect("adminhtml/catalog_category"); 

第一URI(即adminhtml)是模块名和管理区的模块名称是adminhtml。

+0

伟大的工程。我犯了一点小错。 – 2013-03-26 05:19:23