I made this SQLite3 in local environment.
【Environment】
・OSX MAMP PHP5.3
・SQLite3
【Tool】
・MAMP SQLiteManager
・SQLite Database Browser
・Firefox SQLite Manage
【I used PHP File】
・ http://codeigniter.com/wiki/PDO_SQLite3/
【Special Thanks】
・@shikoku2011
I got a lot of advice from him.
I thank him very much!!!
【Workflow】
(1) http://codeigniter.com/wiki/PDO_SQLite3/
The zip file is downloaded.
*Uniform resource locator of the file is this.
http://codeigniter.com/wiki/File:sqlite3_pdo_driver_0_02_by_xi.zip/
(2) system/database/drivers/pdo/ I installed a file in this.
(3) config/database.php I wrote a code.
【config/database.php】
$active_group = 'default';
$active_record = TRUE;
$db['default']['hostname'] = '';
$db['default']['username'] = '';
$db['default']['password'] = '';
$db['default']['database'] = 'sqlite:'.APPPATH.'database/report.sql3';
$db['default']['dbdriver'] = 'pdo';
/*
//I change it in comment :)
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = '';
$db['default']['dbcollat'] = '';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
*/