cancel
Showing results for 
Search instead for 
Did you mean: 

How to override Controller on Magento 1.9.x

How to override Controller on Magento 1.9.x

I want to Override method setPathInfo on "app/code/core/Mage/Core/Coontroller/Request/Http.php" by my module (extension)

(not create file on local eg. app/code/local/Mage/Core/Coontroller/Request/Http.php)

Thank you

Tags (2)
1 REPLY

Re: How to override Controller on Magento 1.9.x

Hi Preecha,

Since the class is directly called in several files (see ./code/core/Mage/GiftMessage/Model/Api.php for example)

you can not overwrite it in the normal Magento way via config.xml
Unfortunately this means there is no other option than to use a local rewrite.
However, depending on your case you could perhaps use observers to manipulate the behavior or value of th