Welcome Guest, Not a member yet? Register   Sign In
How to extend CI_Model?
#1

[eluser]mjijackson[/eluser]
What is the cleanest way to create a custom Model class that extends CI_Model? I tried creating a custom MY_Model file and sticking that in the application/libraries directory, but CI does not instantiate it like it does for other libraries. So then, if I try and load the model library first:

Code:
$this->load->library('model');

I get an error saying that the CI_Model class cannot be found. Any ideas?


Messages In This Thread
How to extend CI_Model? - by El Forum - 08-11-2007, 12:14 PM
How to extend CI_Model? - by El Forum - 08-11-2007, 01:09 PM
How to extend CI_Model? - by El Forum - 08-11-2007, 05:42 PM
How to extend CI_Model? - by El Forum - 08-11-2007, 10:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB