Welcome Guest, Not a member yet? Register   Sign In
My own model cannot find the core Model class
#1

[eluser]helloworld7[/eluser]
Hi. I'm switching from 1.7.3 to 2.0.2 and I just noticed that my model not work.

Fatal error: Class 'Model' not found in C:\xampp\htdocs\test\application\models\Member.php

This Member.php looks like this.

class Member extends Model {

function __construct() {
parent::__construct();
}
// other functions
}

I noticed the Model.php moved to system/core/

Is that mean I need to move my Member.php to application/core/ too? But then we no longer need the application/model directory?

How can I resolve this issue? Thanks.
#2

[eluser]bubbafoley[/eluser]
you're close. try this:

Code:
class Member extends CI_Model




Theme © iAndrew 2016 - Forum software by © MyBB