How To Create A Helper In Magento
Due to some good reasons, it’s a bad programming habit, and it’s not recommended at all if you modify the core files of Magento. But sometimes, you may want to add new classes or override different functions in your Magento module. Therefore, Magento came up with the Helpers that are the right entity to fulfill your needs.
A Helper in Magento is an object that contains practical methods. You can call it in template files, controllers, models or anywhere in Magento. All you need is to load your helper like this:
Mage::helper('MODULE_NAME/HELPER_CLASS')->HELPER_FUNCTION();
Creating a Helper is quite easy. In this tutorial, you will learn how to create a helper in Magento. You will also find out how to use a helper!
How To easily creat Magento Helper