In CodeIgniter, which global array is used to define database connection parameters?

  • $config['database']
  • $database_params
  • $db_config
  • $db_params
The correct global array to define database connection parameters in CodeIgniter is $config['database']. This array holds values such as 'hostname', 'username', 'password', 'database', etc.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *