Welcome Guest, Not a member yet? Register   Sign In
Efficiently re-using code
#4

[eluser]Xandrios[/eluser]
If I would use this method, I would most probably need a loaded database class/connection in each Model. If I would call $this->load->database(); multiple times, in multiple Models/Classes...does that mean multiple database connections are opened?

Or does the loading work with references, so that wherever i load the database class the same instance (and thus the same connection) will be used/returned?

Thanks!


Messages In This Thread
Efficiently re-using code - by El Forum - 07-06-2007, 01:45 PM
Efficiently re-using code - by El Forum - 07-06-2007, 02:34 PM
Efficiently re-using code - by El Forum - 07-06-2007, 03:08 PM
Efficiently re-using code - by El Forum - 07-06-2007, 07:12 PM
Efficiently re-using code - by El Forum - 07-06-2007, 07:25 PM
Efficiently re-using code - by El Forum - 07-07-2007, 05:50 AM
Efficiently re-using code - by El Forum - 07-07-2007, 06:23 PM
Efficiently re-using code - by El Forum - 07-08-2007, 10:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB