After implementing the auto loading feature described here I get an error. What happens is a model is auto loaded and in it the model uses the database call ($this->db->get();) to fetch records.
What I think is happening is when this error occurs the database library hasn’t been loaded yet, since in the loader.php class it is loaded after the models.
How can I auto load a model which needs to use the database and not get this error? I did try putting $this->load->database() into the constructor function of the model but that did nothing either.
