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

Overload an adminhtml controller
 
asrenzo
Member
 
Avatar
Total Posts:  42
Joined:  2008-02-25
France
 

Hi,

Since a few hours, I’m trying to overload GroupController.php (an adminhtml controller) without succes. I’ve read the wiki page dealing with controller overloading but I’m stucked.

Here’s what I’ve done:

Create the required path in my app/code/ dir :

mkdir -p local/AsRenzoCorp/Adminhtml/controllers/Customer/

Copy the original file into this brand new folder

cp core/Mage/Adminhtml/controllers/Customer/GroupController.php local/AsRenzoCorp/Adminhtml/controllers/Customer/GroupController.php

I placed some code of my own in this file but I can’t tell Magento to use this file instead of the original one.

I tried some rewrite in my local.xml file but I can’t seem to find the right one.

Does anybody have a xml node to save me ??

Regards,

Laurent

 
Magento Community Magento Community
Magento Community
Magento Community
 
asrenzo
Member
 
Avatar
Total Posts:  42
Joined:  2008-02-25
France
 

Hi,

I know this would sounds like a up, but does anyone have any idea ?

Regards,

Laurent

 
Magento Community Magento Community
Magento Community
Magento Community
 
nicolas46
Sr. Member
 
Total Posts:  210
Joined:  2008-04-09
Toulouse
 

I don’t really know how to help you but i think you should put here your local.xml code and config.xml code. Maybe there is some errors in those file.

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