Re: GladeXML('filename.glade') Works on Win2000

From: Date: Wed, 18 Sep 2002 05:02:22 +0000
Subject: Re: GladeXML('filename.glade') Works on Win2000
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2422@lists.php.net to get a copy of this message
Yep, the other recurring issue is about path trouble... ----- Original Message ----- From: "William" <william@paycomonline.com> To: <php-gtk-general@lists.php.net> Sent: Wednesday, September 18, 2002 5:06 AM Subject: [PHP-GTK] GladeXML('filename.glade') Works on Win2000 > I noticed a few other people having trouble getting a .glade file to work > on windows.. > I kept getting the error: > >Fatal error: Cannot instantiate non-existent class: gladexml in > gladeLoginForm.php on line 5 > > When trying to run: > <? > $glade = &new GladeXML('phploginform.glade'); > $glade->signal_autoconnect(); > gtk::main(); > ?> > > Then I realized the example on conf.php.net didn't load the php-gtk > extension at the top of the script. :)...After adding these top two lines it > worked perfectly > <? > //LOAD PHP-GTK Extension > $extension = "php_gtk" . (strpos(PHP_OS, "WIN") >= 0 ? ".dll" > : ".so"); > dl($extension); > > $glade = &new GladeXML('phploginform.glade'); > $glade->signal_autoconnect(); > gtk::main(); > ?> > > Hope that helps someone, > William. > > > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.gtk.general (#2422) next »