Welcome Guest, Not a member yet? Register   Sign In
Multiple database connectivity
#3

[eluser]CroNiX[/eluser]
I believe you can only "autoload" one database connection.

Extend CI's core model class with MY_Model and put them in the constructor there. Then all of your other models would extend MY_Model (instead of CI_Model) and have those properties be available to them.

See the Extending Core Classes section


Messages In This Thread
Multiple database connectivity - by El Forum - 08-24-2012, 04:20 AM
Multiple database connectivity - by El Forum - 08-24-2012, 04:30 AM
Multiple database connectivity - by El Forum - 08-24-2012, 10:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB