title: How to override OrderController in magento
body: <p>I want to override <code>Mage/Adminhtml/controllers/Sales/OrderController.php</code>. My module is <code>app/code/local/MW/Adminhtml</code>. </p>
  
  <p>In my conig.xml I have put the following code.</p>
  
  <pre><code>&lt;config&gt;
  .....
  &lt;admin&gt;
          &lt;routers&gt;
              &lt;adminhtml&gt;                
                  &lt;args&gt;
                      &lt;modules&gt;
                          &lt;MW_Adminhtml before="Mage_Adminhtml"&gt;MW_Adminhtml&lt;/MW_Adminhtml&gt;
                      &lt;/modules&gt;                    
                  &lt;/args&gt;
              &lt;/adminhtml&gt;
          &lt;/routers&gt;
      &lt;/admin&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>controller is as follows.</p>
  
  <pre><code>require_once 'Mage/Adminhtml/controllers/Sales/OrderController.php';
  class MW_Adminhtml_Sales_OrderController extends Mage_Adminhtml_Sales_OrderController
  {
      /*
       some code
  
  */
  }
  </code></pre>
  
  <p>But still it loads the core controller class. What am I doing wrong here? Any help would be appreciated.</p>