Thursday 5 June 2014

How to View all modules system config.xml in Magento?

In Magento Config.xml file is used to setup the module details. We used to setup config.xml file in PackageName/ModuleName/etc/.
Magento collect all the config data from different modules and combine it all into a single file named config.xml.
To view this file simply paste this code in any controllers, run it and see the magic. A huge tree with lots of nodes.


<?php header('Content-Type: text/xml');
 //header('Content-Type: text/plain');
 echo $config = Mage::getConfig() ->loadModulesConfiguration('config.xml') ->getNode() ->asXML();
 exit();
 ?>

No comments:

Post a Comment