NYCPHP Meetup

NYPHP.org

[nycphp-talk] OO PHP-Gtk

Scott Mattocks crisscott at netzero.com
Thu Apr 15 11:23:05 EDT 2004


> My guess would be that you need to set the callback functions like:
> 
> $button->connect('event', array(&$this, 'method1'));
> $button->connect_after('event', array(&$this, 'method2'));
> 
> With the ampersand they *should* be called correctly, whereas without 
> the ampersand each will work on it's own *copy* of $this.

I hope that I am doing that otherwise I am going to feel like a big 
dummy.  I don't have the code with me now but I will try that when I get 
back in front of it.

Thanks for the help,
Scott Mattocks



More information about the talk mailing list