Re: Including files within a class definition
| From: | Jason Barnett | Date: | Mon, 05 Jul 2004 06:23:10 +0000 |
| Subject: | Re: Including files within a class definition | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189689@lists.php.net to get a copy of this message | ||
I really ought to check my code before posting... but you get the idea :)
<?php class generatedFoo { public function __autoload($class) {
include "/path/to/class/$class.php";
} // other stuff } ?> http://www.php.net/zend-engine-2.php