![]() |
My own model cannot find the core Model class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: My own model cannot find the core Model class (/showthread.php?tid=41537) |
My own model cannot find the core Model class - El Forum - 05-10-2011 [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. My own model cannot find the core Model class - El Forum - 05-10-2011 [eluser]bubbafoley[/eluser] you're close. try this: Code: class Member extends CI_Model |