[PHP] Re: Including files within a class definition

2004-07-04 Thread Jason Barnett
I really ought to check my code before posting... but you get the idea :) class generatedFoo { public function __autoload($class) { include "/path/to/class/$class.php"; } // other stuff } ?> http://www.php.net/zend-engine-2.php -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] Re: Including files within a class definition

2004-07-04 Thread Jason Barnett
include (extended_methods_stuff.php); } I know that I can probably extend this class to add the extra functionality however the other generated classes rely on the name of this class so I cannot just extend this class and it's name cannot change. Is there any way to have an include prior to the c