View magento XML tree configuration

As the name suggests, I want to check out the complete XML configuration tree generated by Magento.

I looked at the config object and see no way to do this.

How can I do that?

+5
source share
2 answers

To get the whole xml configuration file (like xml, which I suppose you mean) ...

Mage::app()->getConfig()->getXmlString();

It will be much easier to check if you save it in a file. The following will save the file in var / tmp / configxml.xml ...

file_put_contents(Mage::getBaseDir('tmp').DS.'configxml.xml', Mage::app()->getConfig()->getXmlString());

Obviously, Magento must be loaded first.

+9
source

I decided it was useful, so I built a tiny Magento module that will display the configuration if you add? showConfig = 1 in the URL. Props for Drew Hunter for source code.

https://github.com/siliconrockstar/showconfig

+1
source

All Articles