How to install or setup CodeIgniter In Xampp Server
- Download the latest CodeIgniter by click on the download link version from the official codeigniter website.
- Unzip the file in your htdocs folder.
- Set the baseurl by open application/config/config.php file with a text editor.
- If you need to change the database details open the application/config/database.php file with a text editor and set your database settings.
URL: Codeigniter 3
Example
$config['base_url'] = ‘http://localhost’;
Example
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'my_db',
'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
);
To chcek CodeIgniter install successfully or not open the below link in your browser.
http://localhost/Folder name
Here CodeIgniter is my CodeIgniter project folder name.http://localhost/CodeIgniter
Lets Play with CodeIgniter