Re: [PHP] Re: Rusu Ionut, PHP Question

2009-03-26 Thread Jan G.B.
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)

[PHP] Re: Rusu Ionut, PHP Question

2009-03-26 Thread Ionut Rusu
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