Welcome Guest, Not a member yet? Register   Sign In
How do I get access to the DB-object outside CI?
#2

[eluser]BrianDHall[/eluser]
You could perhaps try include() on db.php in the CI library and attempting to instantiate your own DB object, its the only way I could imagine you could do it.

Rather than do all that, why not use a pre_controller hook? I think the db is available there...


Messages In This Thread
How do I get access to the DB-object outside CI? - by El Forum - 11-02-2009, 08:47 AM
How do I get access to the DB-object outside CI? - by El Forum - 11-02-2009, 09:10 AM
How do I get access to the DB-object outside CI? - by El Forum - 11-02-2009, 10:06 AM
How do I get access to the DB-object outside CI? - by El Forum - 11-02-2009, 10:30 AM
How do I get access to the DB-object outside CI? - by El Forum - 11-02-2009, 03:16 PM
How do I get access to the DB-object outside CI? - by El Forum - 11-02-2009, 03:55 PM
How do I get access to the DB-object outside CI? - by El Forum - 11-03-2009, 03:38 AM
How do I get access to the DB-object outside CI? - by El Forum - 11-03-2009, 03:56 AM
How do I get access to the DB-object outside CI? - by El Forum - 11-03-2009, 04:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB