What does $this refer to in a Model? |
(01-28-2016, 10:31 AM)Narf Wrote: No, $this always refers to the instance of the class you are currently in. I know that $this refers to the most direct class, but how to explain that in a Model, $this can call the function or variable of CI_Controller? |
Messages In This Thread |
What does $this refer to in a Model? - by dangyuluo - 01-28-2016, 09:26 AM
RE: What does $this refer to in a Model? - by Narf - 01-28-2016, 10:31 AM
RE: What does $this refer to in a Model? - by dangyuluo - 01-28-2016, 07:09 PM
RE: What does $this refer to in a Model? - by Narf - 01-29-2016, 02:06 AM
RE: What does $this refer to in a Model? - by dangyuluo - 01-29-2016, 03:06 AM
RE: What does $this refer to in a Model? - by Narf - 01-29-2016, 03:41 AM
RE: What does $this refer to in a Model? - by LeMec - 01-29-2016, 11:32 AM
RE: What does $this refer to in a Model? - by Narf - 01-29-2016, 12:45 PM
RE: What does $this refer to in a Model? - by LeMec - 01-29-2016, 01:33 PM
RE: What does $this refer to in a Model? - by skunkbad - 01-29-2016, 03:53 PM
RE: What does $this refer to in a Model? - by dangyuluo - 01-30-2016, 05:26 AM
|