2013-03-26 40 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