December 2013
Intermediate to advanced
306 pages
6h 26m
English
If you have already configured CodeIgniter to connect with a database, you can skip this part, as all we're going to do is make sure we can connect to a database; to do this, we're going to amend the following two files:
/path/to/codeigniter/application/config/database.php/path/to/codeigniter/application/config/autoload.phpdatabase.php config file, look for the following lines and amend them accordingly:$db['default']['hostname'] = 'localhost'; $db['default']['username'] = 'Replace with database username'; $db['default']['password'] = 'Replace with database password'; $db['default']['database'] = 'Replace with database name';
The chances are that you'll not need to change $db['default']['hostname'] ...
Read now
Unlock full access