Welcome Guest, Not a member yet? Register   Sign In
Using multiple databases with helper files
#7

[eluser]ryan656[/eluser]
Ok perfect thanks - now is there a way to call <code>$db1 = $ci->load->database('group_one', TRUE);</code> from the controller and then <code>$query = $db1->get('some_table');</code> from the helper? I just don't wanna load the database every time the helper function is called. Maybe it doesn't matter though I don't know, does the load function check to see if its already loaded before it wastes resources trying to load it?

Thanks again I appreciate the help.

Ryan


Messages In This Thread
Using multiple databases with helper files - by El Forum - 12-06-2009, 01:41 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 01:49 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:04 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:09 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:12 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:29 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:37 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:49 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:57 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 03:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB