I need constructor or init function that can be run for my custom module. I need to call it every time when request made to my module's controller in magento.
Magento – Constructor for Magento Controller
controllersmodule
controllersmodule
I need constructor or init function that can be run for my custom module. I need to call it every time when request made to my module's controller in magento.
Best Answer
You can add following function to use your logic to your custom module's controller:
I hope this will help