CodeIgniter Installing
codeigniterTo install CodeIgniter, follow these steps:
- Download the latest version of CodeIgniter from the official website (https://codeigniter.com/download).
- Extract the downloaded zip file.
- Upload the extracted files to your server.
- Open the application/config/config.php file in a text editor and set your base URL.
$config['base_url'] = 'http://example.com/';
- Open the application/config/database.php file and set your database settings.
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'your_username',
'password' => 'your_password',
'database' => 'your_database',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
- If you want to use the encryption library, you need to set your encryption key in the application/config/config.php file:
$config['encryption_key'] = 'your_encryption_key';
- Make sure the application/cache and application/logs directories are writable by the web server.
Other Article on Tag codeigniter
- - CodeIgniter Application Architecture
- - CodeIgniter Configuration
- - CodeIgniter connect database
- - CodeIgniter Error Handling
- - CodeIgniter File Uploading
- - CodeIgniter Form Validation
- - CodeIgniter Installing
- - CodeIgniter Sending Email
- - CodeIgniter Session Management
- - codeigniter vs cakephp