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