I am trying to override a controller from the core (Mage/Adminhtml/controllers/Sales/Order/InvoiceController).
My code for this in my custom modules' config.xml:
<modules>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<Mycompany_Mymodule before="Mage_Adminhtml">Mycompany_Mymodule_Adminhtml</Mycompany_Mymodule>
</modules>
</args>
</adminhtml>
</routers>
</admin>
</modules>
My controller file is located at: local/mycompany/mymodule/controllers/adminhtml/dueperiodcontroller.php
The route doesn't get here (still uses the core controller).
There might be a way to use mycompany/adminhtml as module and place everything in here. Does this work?
And preferably an easy fix for the way I already did.