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
$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
2 matches
Mail list logo