Created
June 16, 2012 16:51
-
-
Save niclashoyer/2941918 to your computer and use it in GitHub Desktop.
Get Magento Configurations as XML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Put this file to /magento/shell/config.php and run | |
$ php shell/config.php | tidy -xml -i > config.xml | |
*/ | |
require_once 'abstract.php'; | |
class Export_Config extends Mage_Shell_Abstract | |
{ | |
public function run() | |
{ | |
$config = new Mage_Core_Model_Config(); | |
$config = $config->loadBase(); | |
$config = $config->loadModules(); | |
$config = $config->loadDb(); | |
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"; | |
echo $config->getXmlString()."\n"; | |
} | |
} | |
$shell = new Export_Config(); | |
$shell->run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment