Extending CI_Model more than once in applications/core |
[eluser]glevine[/eluser]
The following line in the CarPeer constructor should take care of loading the CarObject class for me, as load->model() looks in the models dir. Code: $this->load->model('CarObject'); I'd hate to be forced to add my own includes if CI has already built a construct to do that for me. I'm not sure what you mean by the structure not being native to CI. I followed exactly the instructions for extending a core class (http://ellislab.com/codeigniter/user-gui...asses.html), in this case CI_Model. The only difference is that I'm extending it twice. |
Messages In This Thread |
Extending CI_Model more than once in applications/core - by El Forum - 03-12-2012, 09:56 PM
Extending CI_Model more than once in applications/core - by El Forum - 03-12-2012, 10:15 PM
Extending CI_Model more than once in applications/core - by El Forum - 03-12-2012, 10:29 PM
Extending CI_Model more than once in applications/core - by El Forum - 03-12-2012, 10:31 PM
Extending CI_Model more than once in applications/core - by El Forum - 03-12-2012, 10:37 PM
Extending CI_Model more than once in applications/core - by El Forum - 03-12-2012, 10:43 PM
Extending CI_Model more than once in applications/core - by El Forum - 03-12-2012, 11:08 PM
Extending CI_Model more than once in applications/core - by El Forum - 03-13-2012, 12:09 AM
Extending CI_Model more than once in applications/core - by El Forum - 03-13-2012, 01:00 AM
|