title: Magento - Override order controller
body: <p>I want to override the following controller which creates orders in the backend:</p>
  
  <pre><code>app/code/core/Mage/Adminhtml/controllers/Sales/Order/CreateController.php
  </code></pre>
  
  <p>I have copied the file itself into:</p>
  
  <pre><code>app/code/community/Pinto/PartnerSystem/Adminhtml/controllers/Sales/Order/CreateController.php
  </code></pre>
  
  <p>For the sake of not being sure where or how exactly to copy the file/directory structure I also copied it into:</p>
  
  <pre><code>app/code/community/Pinto/PartnerSystem/controllers/AdminControllers/Sales/Order/CreateController.php
  </code></pre>
  
  <p>I then renamed the class to:</p>
  
  <pre><code>class PartnerSystem_Adminhtml_Sales_Order_CreateController extends Mage_Adminhtml_Sales_Order_CreateController 
  { 
  // functions 
  }
  </code></pre>
  
  <p>In my <strong>config.xml</strong> I have added the following:</p>
  
  <pre><code>&lt;admin&gt;
          &lt;routers&gt;
              &lt;partnersystem&gt;
                  &lt;use&gt;admin&lt;/use&gt;
                  &lt;args&gt;
                      &lt;module&gt;Pinto_PartnerSystem_AdminControllers&lt;/module&gt;
                      &lt;frontName&gt;partnersystemadmin&lt;/frontName&gt;
                  &lt;/args&gt;
              &lt;/partnersystem&gt;
              &lt;adminhtml&gt;
                  &lt;args&gt;
                      &lt;modules&gt;
                          &lt;partnersystem before="Mage_Adminhtml"&gt;PartnerSystem_Adminhtml_Sales_Order_CreateController&lt;/partnersystem&gt;
                      &lt;/modules&gt;
                  &lt;/args&gt;
              &lt;/adminhtml&gt;
          &lt;/routers&gt;  
      &lt;/admin&gt;
  </code></pre>
  
  <p>I'm not quite sure as to what I should put between the  to make it use my <code>CreateController.php</code> instead of the base one.</p>
  
  <p>Quite new to Magento so could use some help :)</p>