06-06-2009, 08:43 AM
|
#4 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
What Salathe was saying is that you have to use $this->username instead of $username. The first one is a class member, the latter is just a local variable. Then, $this->username does not have to be public, it can be protected. That way, it has kind of "private" visibility which is also inherited to children, but cannot be overwritten from outside the class.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|