Re: Best practice

From: Date: Fri, 29 Apr 2005 15:30:05 +0000
Subject: Re: Best practice
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5796@lists.php.net to get a copy of this message
Hello Sander, > This is the line I'm having trouble with: > $this->vbox1->pack_start ($button); The problem is PHP4 which isn't capable doing this. > What's best practice to solve this? Should I do something like this: > $vbox1 = &$this->vbox1; Yes, that's a good one. But IMO you don't need the "&". PHP5 and PHP-Gtk2 allow the first statement, so the following is possible: $this->button->get_label()->set_text("hello"); Regards/MfG, Christian Weiske -- XMMS is playing now: Norah Jones - Seven years

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.general (#5796) next »