NEKOGET Report

日本語 english

-

CodeIgniter2.0.1 + SQLite3

SQLite3 + CodeIgniter
I used SQLite3 in CodeIgniter2.0.1.
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;
*/

【My impression】
It was very simple.
The model file is the same state when I used mysql.

There is little the information,A method to use CodeIgniter for in SQLite3.There may be few people employing.
I use 'CodeIgniter2.0.1 + Sqlite3' and am convenient.
I was very happy.
I have a feeling that this combined thing plays an active part very much.

Creation data : 2011-05-31 10:43

Last update : 2011-05-31 10:43

-

-