unexpected[it]

Professional IT Blog

  • 14th, Jun 2010

Magento Get Database Config

Tags: , ,

//Get Database Config
$config = Mage::getConfig()->getResourceConnectionConfig("default_setup");
$Server = $config->host;
$User = $config->username;
$Password = $config->password;
//[...]

© 2010 unexpected[it]. All Rights Reserved.

This blog is powered by Wordpress and a modified version of Magatheme