In this statement from codeigniter
$this->db->select('')
Are we saying,
From the current model object, find the object called 'db' then run the function in 'db' called select?
Thanks
In this statement from codeigniter
$this->db->select('')
Are we saying,
From the current model object, find the object called 'db' then run the function in 'db' called select?
Thanks
 
    
    $this is a reference to the current object.
db is a property of whichever object $this represents.
select() is a method of the db object.
You use -> in an object oriented context to access methods and properties of an object.
Edit
To answer your question in the comments, we need to clarify the terminology being used.
A class has methods (functions) and properties (variables).
In this case, db is an object (you can tell because it has a select method). But in the context of the object represented by $this, it is a property of the object.
