getDBConfig

Navigation:  Development > Architecture and Standard > App Factory > __Def >

getDBConfig

Previous pageReturn to chapter overviewNext page

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
)
*/