Hi I’m trying to override Mage_Customer_AccountController, so that I can extend the createPostAction method. For the life of me I can’t seem to do this, it either throws a 404 page, which suggests that its not the right path for the file or it defaults to orignal.
<rewrite>
<company_modulename_account>
<from><![CDATA[#^/customer/account/#]]></from>
<to>/modulename/account</to>
</company_modulename_account>
</rewrite>
My controller is located here local/company/modulename/controllers/AccountController.php
Instead, you can try as:
And create a controller class:
app/code/[codePool]/Company/Modulename/controllers/AccountController.php
with the following code:
Here is more info about controller overriding:
https://stackoverflow.com/a/7117076/887385
Good Luck!!