Create Custom module look like this below steps:
Step 1:- Create a file Custom_Module.xml at app\etc\module\Custom_Module.xml and add the below code.
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<active>true</active>
<codePool>local</codePool>
<version>0.1.0</version>
</Custom_Module>
</modules>
</config>
Step 2:- Create a file config.xml at app\code\local\Custom\Module\etc\config.xml and add the below code.
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<version>0.1.0</version>
</Custom_Module>
</modules>
<global>
<rewrite>
<custom_module_customer_accountcontroller>
<from><![CDATA[#^/customer/account/#]]></from> <!-- Mage_Customer_AccountController -->
<to>/module/customer_account/</to> <!-- Custom_Module_Customer_AccountController -->
</custom_module_customer_accountcontroller>
</rewrite>
</global>
</config>
Step 3:- Create a file AccountController.php at app\code\local\Custom\Module\controllers\Customer\AccountController.php and add the below code.
<?php
require_once "Mage/Customer/controllers/AccountController.php";
class Custom_Module_Customer_AccountController extends Mage_Customer_AccountController{
// here your function
}
Hope this helps!
customer
toCustomer/controllers
app/code/core/Mage/Customer/controllers
toapp/code/local/Mage/Customer/controllers
...