Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Module Configuration Retrieval
 
yshahin
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2008-05-14
 

I created a module and I added a system.xml file with some configuration fields

now how do i retrieve the configuration data?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

For textual data: Mage::getStoreConfig(’section/group/field’);

For flag data (on/off, true/false, 1/0): Mage::getStoreConfigFlag(’section/group/field’);

 
Magento Community Magento Community
Magento Community
Magento Community
 
yshahin
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2008-05-14
 

ok but i say this alot and $this is a Model Class

$this->getConfigData('my_id');
what is this function?
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top