Re: GtkMenu ?
| From: | Steph | Date: | Mon, 16 Jul 2001 18:38:43 +0000 |
| Subject: | Re: GtkMenu ? | ||
| References: | 1 2 3 4 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2219@lists.php.net to get a copy of this message | ||
1. I'm saying we don't get to see what the integer is any other way than getting the
thing to run!
- so yes! cos there's no other way to debug it. Unless Andrei comes up with something just as
I'm about to post this, of course :)
2. that err msg is because $this->gui['notebook'] is not being recognised as global.
I wasn't suggesting you use /2global $notebook;" just trying to show you the syntax.
----- Original Message -----
From: "Jonas Delfs" <jonas@delfs.dk>
To: "Steph" <steph.fox@btinternet.com>
Cc: <php-gtk@lists.php.net>
Sent: Monday, July 16, 2001 7:30 PM
Subject: Re: [PHP-GTK] GtkMenu ?
> Got thru that part OK, you use PHP and force the type.
You're saying that i should force the integer to be a string - or am i misunderstanding you?
> I'm stuck on the global that's needed for notebook to
> get picked up on, mainly cos I don't understand classes.
> (hence the line 82 err msg.)
> usual syntax would be something like global $notebook;
> at the start of that function.
I don't use $notebook but $gui['notebook'] - and because $gui is a global variable in
the class, no need for declaring global.
> You hadn't put () when you called your classes,
No need to do that when the constructor of the class not requires any arguments
> half the time, nor had you called them by reference
That's correct - but do i need to do that all the time? (i have to confess that i'm not
100% in to assigning by reference)
--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk