Re: another class question/problem

From: Date: Tue, 06 Mar 2001 04:53:39 +0000
Subject: Re: another class question/problem
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-378@lists.php.net to get a copy of this message
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

« previous php.gtk (#378) next »