[eluser]Ikkaku-Sama[/eluser]
Hi!
I'm trying to create a file called GeneralModel.php, because my models have the same functions and I want to put them into one file to my Models extend this GeneralModel. I tried to put it at this folder: system/application/models, but it wasn't right. I read the CodeIgniter Tutorial and now I'm putting my GeneralModel.php at the libraries folder. But, when I tried to extend GeneralModel, generated this error:
Fatal error: Class 'GeneralModel' not found in C:\wamp\www\myProject\system\application\models\programasModel.php on line 2
I loaded my GeneralModel at the autoload.php and now appears this error:
Fatal error: Class 'Model' not found in C:\wamp\www\myProject\system\application\libraries\GeneralModel.php on line 2
My General insn't finding my the class Model. How can I solve this? Is it right what I'm doing?