CI can't find my method and I don't know why... |
Because this is not how you use models.
Method "model" of CI_Loader returns an instance of it self(CI_Loader), not an instance of the model. The model is instantiated in the controller property with the same name as the model, or in coder words: $this->Nameofmodel_model Please read: http://www.codeigniter.com/user_guide/ge...ng-a-model
Website: http://tomaz.lovrec.eu
GitHub: https://github.com/slax0rr Twitter: https://twitter.com/slax0rr |
Messages In This Thread |
CI can't find my method and I don't know why... - by chidiplomat - 10-05-2015, 11:30 PM
RE: CI can't find my method and I don't know why... - by Narf - 10-06-2015, 01:36 AM
RE: CI can't find my method and I don't know why... - by slax0r - 10-06-2015, 01:38 AM
|