* @version Id: */ /* //SAE环境变量 SAE_MYSQL_HOST_M); SAE_MYSQL_PORT); SAE_MYSQL_USER); SAE_MYSQL_PASS); SAE_MYSQL_DB); SAE_MYSQL_HOST_S); SAE_MYSQL_PORT); SAE_MYSQL_USER); SAE_MYSQL_PASS); SAE_MYSQL_DB); */ $config = array('mysql' => array('default' => array('product' => array('master' => array('host' => '172.0.0.1', 'port' => '3306', 'user' => 'root', 'pass' => '', 'database' => 'test', 'charset' => 'utf8'), 'slave' => array('host' => '172.0.0.1', 'port' => '3306', 'user' => 'root', 'pass' => '', 'database' => 'test', 'charset' => 'utf8')), 'test' => array(), 'dev' => array())), 'memcache' => array('default' => array('servers' => '127.0.0.1:7600'))); class DBConfig { public static $config = array(); private function __construct() { return; } public static function set($config) { self::$config = $config; } } DBConfig::set($config);