How to override/extend controller in Magento 1

If we want to override controller file in magento 1 then we need to add create custom modules like following:

Create a new module and declare it in “app/etc/modules” by adding a xml file.


Create folders in app/code/local according to your module and create config.xml in etc folder of your module.


Create your controller file in “app/code/local/your_module/controllers/”

We can directly override Model,  Block classes by creating file at same path in local folder.