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
?php
class overall {
var $loaded;
function load($class){
$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
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
3 matches
Mail list logo