title: Codeigniter PHP: Error when load config database in controller?
body: <p>I have got error "Your application/config/database.php file does not appear to contain a valid configuration array." when load config database in codeigniter:</p>
  
  <p>Here my controller:</p>
  
  <pre><code>$this-&gt;config-&gt;load('database');
  </code></pre>
  
  <p>Here my file database.php:</p>
  
  <pre><code>$active_group = 'default';
  $active_record = TRUE;
  $tnsname = '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
          (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))';
  $db['default']['hostname'] = $tnsname;
  $db['default']['username'] = 'system';
  $db['default']['password'] = 'xxxxxx';
  $db['default']['database'] = '';
  $db['default']['dbdriver'] = 'oci8';
  $db['default']['dbprefix'] = '';
  $db['default']['pconnect'] = TRUE;
  $db['default']['db_debug'] = TRUE;
  $db['default']['cache_on'] = FALSE;
  $db['default']['cachedir'] = '';
  $db['default']['char_set'] = 'utf8';
  $db['default']['dbcollat'] = 'utf8_general_ci';
  $db['default']['swap_pre'] = '';
  $db['default']['autoinit'] = TRUE;
  $db['default']['stricton'] = FALSE;
  </code></pre>
  
  <p>I load config file database and I want to change config database from controller? will know how to do that? </p>