Re: OOP Newbie - why does this not work?

From: Date: Fri, 21 Oct 2005 13:32:12 +0000
Subject: Re: OOP Newbie - why does this not work?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-224400@lists.php.net to get a copy of this message
would have to be. http://smileaf.org/bob.php as you can see it's working great. did make few more changes: class Test { public $saying = ""; function __construct() { $this->saying = "I'm in the Test Class." ; } function get() { return $this->saying ; } } when accessing a class variable _always_ in php use $this-> On Friday 21 October 2005 04:42 am, Bob Hartung wrote: > Stephen, > I copied your code and ran it. Same thing - a totally blank page. > Therefore I have to surmise that there is a a) bug in the rpm I > downloaded or more likely b) I have a conf setting wrong. I will > investigate further -- boy oh boy what a way to start! Every line of > code is a new chance to learn. > > Thanks again, > > Bob > > <<snip all before >>

« previous php.general (#224400) next »