Welcome Guest, Not a member yet? Register   Sign In
Problem loading database class in custom class
#1

[eluser]prezet[/eluser]
Hi

Here is my code:

Code:
class Cat
{
    
    public function __construct($cat_name)
    {
    $CI = get_instance();
        
    $CI->load->library('database');
    }
}

And I get a 'Unable to load the requested class: database'... any ideas?

Other libraries seem to be ok.


Messages In This Thread
Problem loading database class in custom class - by El Forum - 10-29-2008, 02:09 PM
Problem loading database class in custom class - by El Forum - 10-29-2008, 02:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB