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
Instead, you can try as:
...
<frontend>
<routers>
<customer>
<args>
<modules>
<company_modulename before="Mage_Customer">Company_Modulename</company_modulename>
</modules>
</args>
</customer>
</routers>
</frontend>
...
And create a controller class:
app/code/[codePool]/Company/Modulename/controllers/AccountController.php
with the following code:
require_once 'Mage/Customer/controllers/AccountController.php';
class Company_Modulename_AccountController extends Mage_Customer_AccountController
{
public function createPostAction(){
die('Overriden');
}
}
Here is more info about controller overriding:
https://stackoverflow.com/a/7117076/887385
Good Luck!!