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

No, $this always refers to the instance of the class you are currently in.

You can access controller properties because of a magic __get() method: https://github.com/bcit-ci/CodeIgniter/b...el.php#L71
Reply


Messages In This Thread
RE: What does $this refer to in a Model? - by Narf - 01-28-2016, 10:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB