Re: another class question/problem

From: Date: Tue, 06 Mar 2001 13:01:06 +0000
Subject: Re: another class question/problem
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-386@lists.php.net to get a copy of this message
OK, that works. Thanks for the help. --rdp On Mon, 5 Mar 2001, Andrei Zmievski wrote: > At 09:29 PM 3/5/01 -0500, Rich Payne wrote: > > >OK, attached are two files that show the problem. If you comment out the > >creation of the button in add.php then it all works fine, but if the > >button gets created them it return a GtkButton instead of a GtkEntry from > >get_text_entry. > > > >Just run the main.php and click on the add button. > > Eh, it's because you improperly use object properties. You should refer to > the entry as $this->name_entry, not $this->$name_entry, and to the button > as $this->add_button, not $this->$add_button. > > > -Andrei > -- Rich Payne rpayne@alphalinux.org www.alphalinux.org

« previous php.gtk (#386) next »