Magento 1.9 – Override Adminhtml Customer Controller

adminadminhtmlcustomermagento-1.9overrides

I have been trying to override magento(1.9) admin's customer controller with my controller. But even though I have followed the steps correctly, I couldn't override the customer controller. Following are my codes

config.xml

<?xml version="1.0" ?>
<config>
<modules>
    <Aemulare_Customer>
        <version>1.0</version>
    </Aemulare_Customer>
</modules>

<admin>
    <routers>
        <adminhtml>
            <args>
                <modules>
                    <Aemulare_Customer before="Mage_Adminhtml">
                        Aemulare_Customer_Adminhtml
                    </Aemulare_Customer>
                </modules>
            </args>
        </adminhtml>
    </routers>
</admin>
</config>

My Controller(app/code/local/Aemulare/Customer/controllers/Adminhtml/CustomerController.php)

    <?php

     require_once "Mage/Adminhtml/controllers/CustomerController.php";

     class Aemulare_Customer_Adminhtml_CustomerController extends Mage_Adminhtml_CustomerController {

      public function indexAction() {
         die("H");
      }
}

What might be the issue? Please help.

Best Answer

i think there is space issue remove the space..

<Aemulare_Customer before="Mage_Adminhtml">Aemulare_Customer_Adminhtml</Aemulare_Customer>
Related Topic