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.
Loading...
Related Quiz
- Explain the role of the 'hooks' directory in advanced CodeIgniter applications.
- When implementing a financial transaction feature, the developer uses ________ in CodeIgniter to ensure atomicity and consistency of the database.
- How does using 'Query Binding' in CodeIgniter help in performance optimization?
- ________ in CodeIgniter's unit testing allows developers to isolate the code from its external dependencies.
- Ensuring that user inputs are __________ based on the expected data type is crucial in preventing SQL injection.