Welcome Guest, Not a member yet? Register   Sign In
dbutils confusion
#8

[eluser]TheFuzzy0ne[/eluser]
I would either suggest skipping it, or create your own version within your "Connection" class. It shouldn't be too hard to port. I'm not sure if there will be issues where people can see other people's databases. If the permissions on the databases are correct, I doubt there will be a problem.

Just out of interest. What do you need more than one connection for? If it's only a single connection in any given transaction that needs the dbutil class, then you should load that as the default $this->db in the CI super object, and if the other connection is to your database for validation and other things, I'd suggest that you load that database into a separate variable, and use that. Just load it into the CI super object to make it global. Something like $this->my_db = $CI->load->database($config, TRUE);

If you needed an admin panel, then you'd load your database connection into $this->db in the CISO, as you wouldn't need to use any other connections.

Hope this make sense.


Messages In This Thread
dbutils confusion - by El Forum - 02-26-2009, 01:21 PM
dbutils confusion - by El Forum - 02-26-2009, 06:51 PM
dbutils confusion - by El Forum - 02-26-2009, 07:58 PM
dbutils confusion - by El Forum - 02-27-2009, 08:35 PM
dbutils confusion - by El Forum - 03-04-2009, 09:04 AM
dbutils confusion - by El Forum - 03-04-2009, 09:18 AM
dbutils confusion - by El Forum - 03-04-2009, 09:26 AM
dbutils confusion - by El Forum - 03-04-2009, 10:15 AM
dbutils confusion - by El Forum - 03-04-2009, 10:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB