Return Database Configuration
App::__Def()->getDBConfig();
See below example:
// Return all info
$info = App::__Def()->getDBConfig();
/*
Array
(
[cname] => primary
[type] => MYSQL
[charset] => utf8
[prefix] => app_
[host] => localhost
[dbname] => apprain_301
[username] => root
[password] => 123456
)
*/