Welcome Guest, Not a member yet? Register   Sign In
What does $this refer to in a Model?
#5

(01-29-2016, 02:06 AM)Narf Wrote: By actually reading my second sentence and those links? Smile

I'm not trying to offend you, but maybe you misunderstand my question.
I can surely use _get to get access to function and variable of CI_Controller. I have known that quite before.
But my question actually is, since I have experimented before, why can I use $this->cache->redis in a model, in which $this should refer to the Model Class, not the CI_Controller?
Reply


Messages In This Thread
RE: What does $this refer to in a Model? - by dangyuluo - 01-29-2016, 03:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB