title: override core controller in custom module in Magento
body: <p>HI i have to extend the core controller in my own module for this i am referencing the below link
  <a href="http://inchoo.net/tools-frameworks/how-to-extend-magento-core-controller/" rel="nofollow">http://inchoo.net/tools-frameworks/how-to-extend-magento-core-controller/</a></p>
  
  <p>below is my module  structure</p>
  
  <p>/var/www/magento1.9/app/etc/modules</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;!--we need to enable this module as any other if--&gt;
  &lt;!--you wish to do it as standalone module extension--&gt;
  &lt;config&gt;
      &lt;modules&gt;
          &lt;Inchoo_Coreextended&gt;
              &lt;active&gt;true&lt;/active&gt;
              &lt;codepool&gt;local&lt;/codepool&gt;
          &lt;/Inchoo_Coreextended&gt;
      &lt;/modules&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>/var/www/magento1.9/app/code/local/Inchoo/Coreextended/controllers/Frontend/Customer/AccountController.php</p>
  
  <pre><code>&lt;?php
  require_once Mage::getModuleDir('controllers', 'Mage_Customer').DS.'AccountController.php';
  //we need to add this one since Magento wont recognize it automatically
  class Inchoo_Coreextended_Frontend_Customer_AccountController extends Mage_Customer_AccountController
  {//here, you extended the core controller with our
  public function indexAction()
  {
  parent::indexAction();
  //you can always use default functionality
  }
  public function myactionAction()
  {
  //my code
  //you can write your own methods / actions
  }
  public function mymethod()
  {
  //my code
  //you can write your own methods
  }
  public function loginAction()
  {
  
      echo "hello";
  //finally you can write your code that will rewrite the whole core method
  //and you can call for your own methods, as you have full control over core controller
  }
  }
  </code></pre>
  
  <p>/var/www/magento1.9/app/code/local/Inchoo/Coreextended/etc/config.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
      &lt;modules&gt;
          &lt;Inchoo_Coreextended&gt;
              &lt;version&gt;0.1.0&lt;/version&gt;
          &lt;/Inchoo_Coreextended&gt;
      &lt;/modules&gt;
      &lt;frontend&gt;
          &lt;routers&gt;
                  &lt;customer&gt;
                      &lt;args&gt;
                          &lt;modules&gt;
                              &lt;Inchoo_Coreextended before="Mage_Customer_AccountController"&gt;Inchoo_Coreextended_Frontend_Customer&lt;/Inchoo_Coreextended&gt;
                          &lt;/modules&gt;
                      &lt;/args&gt;
                  &lt;/customer&gt;
          &lt;/routers&gt;
      &lt;/frontend&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>but when i am accessing the  <code>http://localhost/magento1.9/index.php/customer/account/login/</code>  it shows core  login action  and it is not switching from my module   Can you please suggest where i am doing mistake .</p>