Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3941666
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:34:13+00:00 2026-05-20T00:34:13+00:00

I updated to CI 2.0 now my models stopped working.I used parent::__construct(); And i

  • 0

I updated to CI 2.0 now my models stopped working.I used

 parent::__construct();

And i defined the class correctly extends CI_Model but even using a simple get all

$query = $this->db->get('mytable');

Returns an error

 Call to a member function get() on a non-object in models\crudModel.php on line 13

I’m sure its related to the update since they worked fine before.Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:34:14+00:00Added an answer on May 20, 2026 at 12:34 am

    It sounds very much like you are not loading the database library – have you got it in your config/autoload.php? It is sensible to autoload it if you use the database library in all your controllers:

    $autoload['libraries'] = array( 'database' );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey, I've a database already created. Now I've updated UserProfile with: class UserProfile(models.Model): user
[Updated, sorry about the change but now to the real problem] I cannot include
I updated my User class, and now whenever someone that had the old version
I've used N2 CMS for a while now, I've just updated to use MVC
I recently updated my Eclipse (now running 20100218-1602), and I've found whenever I click
I updated the way my program works with fines and charges and now I
I have recently updated my ADT and it is now ADT_V20. I have also
I just updated PHP 5.2.0 to 5.2.11 and now I am getting loads of
I've just updated my android adt to version 17 and now i cant start
Now that Google App Engine natively supports Django 1.0, I updated with the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.