Re: [PHP] this oop-script still doesn't work

2002-11-19 Thread Nick Eby
seems to me that you're trying to have an object's member behave as if it had global scope. you never say "$foo = new bar()". instead you say "$this->foo = new foo()" where $this is an instance of Overall. you can't instantiate a Foo as a member of an Overall instance, and then expect to talk to

Re: [PHP] this oop-script still doesn't work

2002-11-19 Thread Jonathan Sharp
$overall->foo->bar() works for me. also there's no need for the eval('global...') line Apache 1.3.27, PHP 4.2.2 -js Tularis wrote: > ok, I have gotten great help here already, but it still doesn't work, > it returns a object not found error (on the $foo->bar() line). I want to > change $overal

[PHP] this oop-script still doesn't work

2002-11-19 Thread Tularis
ok, I have gotten great help here already, but it still doesn't work, it returns a object not found error (on the $foo->bar() line). I want to change $overall->foo->bar() to $foo->bar... any tips? or help?? thanx! - Tularis class overall { var $loaded; function load($class){ eval("glob