Question:What is the best way to create global variables which can be used everywhere in Magento? 

A Creating a empty module and adding a system.xml file to it 

B Using the Magento Admin panel: System > Custom Variables > create a new custom variable 

C Via a Magento Session $myValue = 'Hello World'; Mage::getSingleton('core/session')->setMyValue($myValue); 

D $myValue = 'Hello World'; Mage::getModel('core/variable')->addMyValue($myValue); 

+ Answer
+ Report
Total Preview: 867

Copyright © 2024. Powered by Intellect Software Ltd