Welcome Guest, Not a member yet? Register   Sign In
Help me understand the basics
#1

[eluser]greg.thompson[/eluser]
Hi guys, been fooling around with CI for a few days now, built out a nice login form with HASH/SALT security, validation etc. but there's one basic I can't quite seem to grasp and its "$this". So basically what I'm confused about is when I have some controller call a specific model then load a view, what all is accesible by the view and what is stored in $this? for example, I the user login, it validates, stores their basic info to the userdata like name and roles. Now in the view, what can I trigger with this? How come I call $this->session and it works? I always thought $this was only referencing the current object/class that you're currently in. But $this is a variable, and not 'this'. Do I even make sense?


Messages In This Thread
Help me understand the basics - by El Forum - 02-29-2012, 09:10 AM
Help me understand the basics - by El Forum - 02-29-2012, 10:57 AM
Help me understand the basics - by El Forum - 02-29-2012, 11:40 AM
Help me understand the basics - by El Forum - 02-29-2012, 11:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB