Erm, aren't "extends" what you're looking for?
To accomplish the auto-loading of needed subclasses?
example:
greeting = parent::$x;
}
}
$test = new BAR();
echo $test->greeting;
?>
Prints out "Hello World".
Sure - the if you put class FOO in a separate file, than you need to
require_once(it)
sry to boder you again but i didnt quite understood youre answer, i got the
part where to add the include files on the top of the file or with
require_once statment, but i still dont understant how is it posiible to add
classes to the constructor with the include statment and not trigger a
nested c
2 matches
Mail list logo