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

Extending Mage_Core_Controller_Varien_Front
 
jshirkey
Jr. Member
 
Total Posts:  12
Joined:  2008-06-20
Charlottesville, VA
 

Is it possible to subclass Mage_Core_Controller_Varien_Front in the same way that most Blocks, Models, controllers, etc. are able to be?  I don’t see any declarative code in the Core module’s config.xml that I would be able to <rewrite> in that fashion.  Also, calls to Mage_Core_Controller_Varien_Front are hard coded in Magento.

I’m currently only interested in adding a line of code to a single method (http://www.magentocommerce.com/boards/viewthread/3459/P15/#t47409) but short of copying the entire class to my local code pool, I don’t see any better way to modify it at this time.

 
Magento Community Magento Community
Magento Community
Magento Community
 
BoostMyShop
Sr. Member
 
Avatar
Total Posts:  155
Joined:  2008-06-11
France
 

its seems that a controller can not be overriden… (strange)
so u need to use url rewrite to call ur own code.

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