Re: use of = &new object versus = new object
| From: | Jake Gordon | Date: | Mon, 11 Jul 2005 20:43:44 +0000 |
| Subject: | Re: use of = &new object versus = new object | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5987@lists.php.net to get a copy of this message | ||
I tried without it as a 'global' and various other ways. The only way I could get my code to work without doing everything in a totally different (and probably more correct) way was to get rid of the &.
The idea was that $main was an area which could be either something or something else depending what button was pressed. If it already existed then it would be replaced with a new widget. If it didn't then it would be created.
Jake
Christian Weiske wrote:
function change_main($button, $section, $main) { global $layout, $main;You know that *two* $main objects don't make sense? Regards/MfG, Christian Weiske