Welcome Guest, Not a member yet? Register   Sign In
Making CI's DBstuff play nice with slave/master setups
#2

[eluser]wh1tel1te[/eluser]
You could possibly create two config groups. Have a look at config groups here: Database Configuration

One group would be your select group (say "select"), and another would be your insert/update/delete group (say "update").

Then you could load the database class using the required group:

Code:
// I want to do some selecting!
$this->load->database('select');
// My select code goes here!

// Now I want to do some updating!
$this->load->database('update');
// My update code goes here!

More info here.


Messages In This Thread
Making CI's DBstuff play nice with slave/master setups - by El Forum - 04-10-2011, 02:02 PM
Making CI's DBstuff play nice with slave/master setups - by El Forum - 04-10-2011, 05:03 PM
Making CI's DBstuff play nice with slave/master setups - by El Forum - 04-11-2011, 01:20 AM
Making CI's DBstuff play nice with slave/master setups - by El Forum - 04-15-2011, 07:46 AM
Making CI's DBstuff play nice with slave/master setups - by El Forum - 07-19-2012, 03:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB