Sometimes you want to be able to look at the raw configuration of Magento during runtime. It would be nice to log this as a XML file. This little code snippet does just that: It dumps your current configuration to a single XML-file in your log-folder:
1 2 3 4 5 |
// Dump your Magento configuration to a single XML-file: Mage::log(Mage::getConfig()->getXmlString(), null, 'config.xml'); // Read out a value: echo Mage::getStoreConfig('catalog/frontend/grid_per_page'); |
Visitors give this article an average rating of 5.0 out of 5.
How would you rate this article?
★ ★ ★ ★ ★