How do i get value from database.php page? I am talking about we are able to access base url by utilizing base_url().The bottom url occur config.php page such as this :

$config['base_url'] = '';

The database particulars in database.php is much like:

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'username';
$db['default']['password'] = 'password';
$db['default']['database'] = 'database_name';

I wish to access the this particulars during my controller page.How do i do that?

echo $db['default']['hostname'];