2016-01-13 61 views
0

我想在adminhtml控制器action.php如何覆蓋magento中的adminhtml控制器action.php?

這裏覆蓋是我試過到目前爲止:

config.xml中

<args> 
    <modules> 
      <Medma_MarketPlace before="Mage_Adminhtml">Medma_MarketPlace</Medma_MarketPlace> 
    </modules> 
</args> 

我對MEDMA /市場/控制器/ adminhtml /動作代碼.php

require_once "Mage/Adminhtml/controller/Action.php"; 

class Medma_MarketPlace_Adminhtml_ActionController extends Mage_Adminhtml_Controller_ActionController 
{ 
    // do something 
} 

但沒有任何反應。我認爲我做錯了什麼。任何幫助深表感謝。

回答

1

Arvind的,請檢查您是否正確寫的配置線,ARGS必須adminhtml標籤內,如下所示:

<admin> 
    <routers> 
     <adminhtml> 
      <args> 
       <modules> 
        <Mynamespace_CustomerGroupReturnable before="Mage_Adminhtml">Mynamespace_CustomerGroupReturnable_Adminhtml</Mynamespace_CustomerGroupReturnable> 
       </modules> 
      </args> 
     </adminhtml> 
    </routers> 
</admin> 

希望這有助於。