[eluser]Piatra[/eluser]
I updated CI to 2.0 but now my models stopped working . Even a basic example such as this
Code:
class CrudModel extends CI_Model {
function __construct()
{
parent::__construct();
}
function getAll()
{
$query = $this->db->get('links');
... // i left the rest of the code out becase the line above is the one with the error
}
Keeps saying Call to a member function get() on a non-object in models\crudModel.php on line 13 . I'm sure its just something that changed in the update. can someone point it out for me ? thanks