Re: another class question/problem
| From: | Rich Payne | Date: | Tue, 06 Mar 2001 02:04:16 +0000 |
| Subject: | Re: another class question/problem | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-369@lists.php.net to get a copy of this message | ||
Not sure what you mean...but I changed the get_text_entry function to:
function get_text_entry() {
var_dump($this->$name_entry);
return $this->$name_entry->get_text();
}
now a var_dump at this point returns a gtkbutton and get_text is
undefined,
object(gtkbutton)(1) {
[0]=>
int(28)
}
a var_dump right after creation returns:
object(gtkentry)(1) {
[0]=>
int(14)
}
I assume that to be normal?
--rdp
On Mon, 5 Mar 2001, Andrei Zmievski wrote:
> At 08:31 PM 3/5/01 -0500, Rich Payne wrote:
>
> >Hmmm.....
> >
> >[rdp@yeoman sysman]$ php main.php
> >X-Powered-By: PHP/4.0.5-dev
> >Content-type: text/html
> >
> >object(gtkbutton)(1) {
> > [0]=>
> > int(28)
> >}
> ><br>
> ><b>Fatal error</b>: Call to undefined function: get_text() in
> ><b>main.php</b> on line <b>49</b><br>
> >
> >
> >gtkbutton?? php-gtk was checked out of CVS today at about 7:00pm EST.
>
> Can you try having get_text_entry() return the variable by reference and
> see if it helps?
>
>
> -Andrei
>
--
Rich Payne
rpayne@alphalinux.org www.alphalinux.org