Wednesday, June 17, 2009

Multiple database di Codeigniter

$active_group = "db1";
$db['db1']['database'] = "nama_database1";
...
...
...

$db['db2']['database'] = "nama_database2";
...
...
...

Untuk menggunakannya, ketik script berikut :
$this->load->database('db1');
atau
$this->load->database('db2');

No comments: