Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Magento ignores local code file and uses the one in core
 
Netismine
Sr. Member
 
Avatar
Total Posts:  174
Joined:  2008-10-28
 

Hi all,

I have a file in this path:

app\code\local\Mage\Customer\controllers\AccountController.php

but magento keeps using this one:

app\code\core\Mage\Customer\controllers\AccountController.php

anyone seen something similar?

thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Netismine
Sr. Member
 
Avatar
Total Posts:  174
Joined:  2008-10-28
 

someone from staff should have an idea why this happens?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Damian Culotta
Enthusiast
 
Total Posts:  878
Joined:  2008-12-10
Argentina
 

I think that you problem is the name of your class.
That controller is called (your controller) Mage_Customer_AccountController.
You’re making an override of that controller, don’t you?.
But when you apply the override, your changing the original with yours (using the same name).
Try changing your Controller to something like this:

Your_Customer_AccountController

Then, make the override.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Netismine
Sr. Member
 
Avatar
Total Posts:  174
Joined:  2008-10-28
 

I’ll try that thanks

I’m doing it the same way for all the files and only this one is not getting overwritten

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top