Welcome Guest, Not a member yet? Register   Sign In
Codeigniter basics
#1

[eluser]mahmood rehman[/eluser]
Can someone tell me why we use $this.
if it is for current object than what it mean $this->load->view();
in the load function what $this do ?
#2

[eluser]InsiteFX[/eluser]
The Basics

InsiteFX
#3

[eluser]mahmood rehman[/eluser]
i cant understand what u mean sorry for that i want only that when we load view in codeigniter using $this->load->view('somthing');
what does $this means here ?
#4

[eluser]InsiteFX[/eluser]
The pseudo-variable $this is available when a method is called from within an object context. $this is a reference to the calling object (usually the object to which the method belongs, but possibly another object, if the method is called statically from the context of a secondary object).

So if your in your controller $this is pointing to your controller class object.

$this is referring to the class you are in.

InsiteFX
#5

[eluser]arunoda[/eluser]
Here is a place you should look for codeigniter basics

1. http://www.udemy.com/codeigniter-learn-it-correct/
2. http://www.youtube.com/watch?v=aOtDzuyBq...F3BB3AE307




Theme © iAndrew 2016 - Forum software by © MyBB