views:

20

answers:

1

I want to use a different database that's defined in my $active_group in my database.php

Any ideas?

+1  A: 

No... But you can actually Initialize the database class with defined parameter from your controller/model/library... example:

test = $this->load->database($config); }

function index() { $this->test->get()... // bla bla bla. } } ?>

Hope this helps :)

Alfredo Rivera