Welcome Guest, Not a member yet? Register   Sign In
Switching Databases
#1

[eluser]NotoriousWebmaster[/eluser]
I'm writing a utility app, which will allow me to perform tasks on different instances of the DB, based on the user's selection of a radio button on the form.

I figured I could force the selection of the production vs dev DB when loading the model; but regardless of the array I pass, it always seems to go with the localhost DB. Sad

Here's a question: if the DB is selected in the controller's constructor, will the model load function override this?

Also, I should mention I'm using an older version of CI: 1.7.2. Would this affect it's behaviour?

Thanks for your help.

- AAA


Messages In This Thread
Switching Databases - by El Forum - 06-08-2011, 01:50 PM
Switching Databases - by El Forum - 06-09-2011, 04:24 AM
Switching Databases - by El Forum - 06-09-2011, 07:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB