Welcome Guest, Not a member yet? Register   Sign In
Error when using db library (set to autoload)
#1

[eluser]Ren83[/eluser]
Hi,
when i try this in a model: $this->db->query('some query');

Im getting this error:
Fatal error: Call to a member function query() on a non-object in D:\wamp\www\.........

I DID add 'database ' to the $autoload['libraries'] array on autoload.php.

What is the problem?

Thanks.


Messages In This Thread
Error when using db library (set to autoload) - by El Forum - 07-28-2011, 03:37 PM
Error when using db library (set to autoload) - by El Forum - 07-28-2011, 08:32 PM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 02:47 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 03:01 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 03:27 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 03:37 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 05:56 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 07:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB