Welcome Guest, Not a member yet? Register   Sign In
CI can't find my method and I don't know why...
#3

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
Reply


Messages In This Thread
RE: CI can't find my method and I don't know why... - by slax0r - 10-06-2015, 01:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB