Welcome Guest, Not a member yet? Register   Sign In
Using a library class
#1

[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?


Messages In This Thread
Using a library class - by El Forum - 07-14-2009, 12:38 PM
Using a library class - by El Forum - 07-14-2009, 02:05 PM
Using a library class - by El Forum - 07-14-2009, 06:37 PM
Using a library class - by El Forum - 07-15-2009, 11:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB