I want to override Mage_Sales_Recurring_ProfileController
in my custom module.
My /etc/config.xml
<config>
<frontend>
<routers>
<sales>
<args>
<modules>
<Namespace_Module before="Mage_Sales">Namespace_Module</Namespace_Module>
</modules>
</args>
</sales>
</routers>
</frontend>
</config>
and my controller file
Namespace/Module/controllers/Sales/Recurring/ProfileController.php
require_once("Mage/Sales/controllers/Recurring/ProfileController.php");
class Namespace_Module_Sales_Recurring_ProfileController extends Mage_Sales_Recurring_ProfileController
{
public function indexAction()
{
// custom code
}
}
But the control doesnt go in the overriden controller, but the core controller only.
Can anyone tell the reason why.