Magento Certified Developer GuideCategory: 1. BasicsWhat are the common methods with which the framework accesses its configuration values and areas?
Manish Prakash Staff asked 5 years ago

Mage::getConfig()->getNode($path);
This is base function responsible for fetching configuration data.
Path needs to be provided to access any field.
This is mainly used to access information from configuration files.
e.g

Mage::app()->getConfig()->getNode('modules/Mage_Core');
Mage::app()->getConfig()->getNode('global/fieldsets/customer_account/prefix/to_order');

Mage::getStoreConfig($path,$store):
This function again need $path, but this is mainly used to read system -> configuration information. We can specify a store or it will automatically take default store.

Mage::getStoreConfigFlag():
Same as getStoreConfig except it will return true/false depending if value is present or not