CodeIgniter Forums
Model Question [Answered] - 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: Model Question [Answered] (/showthread.php?tid=34598)



Model Question [Answered] - El Forum - 10-04-2010

[eluser]Unknown[/eluser]
I am new with Codeigniter and having a really annoying issue that I'm sure is something stupid I'm doing. I keep keep getting this error " PHP Fatal error: Class 'Model' not found" when I'm trying to load any model into the controller. I don't think its my model, here's my model:

Code:
<?php

class Site_model extends Model {

}

I'm thinking its a config issue, maybe?


Model Question [Answered] - El Forum - 10-04-2010

[eluser]Unknown[/eluser]
Fixed. Just needed to extent CI_Model in CI 2.0

Thanks