abstract classes and constructors
View Single Post
06-06-2009, 08:43 AM
Join Date: Dec 2007
Location: Bucharest, Romania
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.
View Public Profile
Send a private message to xenon
Visit xenon's homepage!
Find More Posts by xenon