Re: Organising PHP projects
| From: | Jason Barnett | Date: | Tue, 27 Jul 2004 11:08:45 +0000 |
| Subject: | Re: Organising PHP projects | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191958@lists.php.net to get a copy of this message | ||
One of the new options that I am playing with is the __autoload() handler. If you keep each of your main classes in a separate file then it will try to load the class file the first time you try to create an instance of an undefined class.
There is a little bit of documentation out there about this, along with a few examples. In fact you can check out the archives from a few weeks ago, I posted the __autoload function I'm using there.