Welcome Guest, Not a member yet? Register   Sign In
In a plugin I don't have access to database?
#2

[eluser]Glen Swinfield[/eluser]
You need to get an instance of CI first then load the database:

Code:
$CI =& get_instance();
$CI->load->database();


Messages In This Thread
In a plugin I don't have access to database? - by El Forum - 08-21-2007, 04:25 AM
In a plugin I don't have access to database? - by El Forum - 08-21-2007, 04:44 AM
In a plugin I don't have access to database? - by El Forum - 08-21-2007, 04:51 AM
In a plugin I don't have access to database? - by El Forum - 02-27-2008, 12:32 AM
In a plugin I don't have access to database? - by El Forum - 02-27-2008, 12:37 AM
In a plugin I don't have access to database? - by El Forum - 02-27-2008, 12:48 AM
In a plugin I don't have access to database? - by El Forum - 02-27-2008, 01:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB