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:
// Dump your Magento configuration to a single XML-file:
Mage::log(Mage::getConfig()->getXmlString(), null, 'config.xml');
// Read out a value:
Visitors give this article an average rating of 5.0 out of 5.
How would you rate this article?
★ ★ ★ ★ ★