Global function stands for “A function which is accessible every where in application“. When we will developing an application normally at structure time we will see some functions are common to some modules, Magneto provide helper class to create common function and access with help of helper class instance.
We will define a function in module helper file and use it everywhere in application.
You can also check other tutorial of magento,
- Create Global Function In Magento
- Sending Emails Programmatically in Magento
- How to Call Magento WebService
- How to Create Controller in Magento
Step 1: Register Module under
Step 2: Register helper class under
Step 3: create function definition under your module
Step 3: Call function in application.echo Mage::helper('phpflow')->test();
Other Way:echo Mage::helper('phpflow/data')->test();