On Tue, Aug 28, 2012 at 1:43 PM, Matijn Woudt <tijnema@xxxxxxxxx> wrote: > On Tue, Aug 28, 2012 at 1:16 AM, Larry Garfield <larry@xxxxxxxxxxxxxxxx> wrote: >> On 8/27/12 6:11 PM, Matijn Woudt wrote: >> >>>> You should never be calling require() yourself. Just follow the PSR-0 >>>> naming standard and use an autoloader, then you don't have to even think >>>> about it. There are many existing autoloaders you can use, including >>>> Composer's, Symfony2's, and probably Zend has one as well. >>>> >>> >>> I believe there's one in PHP by default now called SPLClassLoader or >>> something like that.. >>> >>> - Matijn >> >> >> There was a proposal for one, but it was never added. You still need a >> user-space class loader for PSR-0, but they're readily available. >> >> >> --Larry Garfield >> > > Ah thanks for the info. I heard about it way back and assumed it was > implemented by now ;) > > - Matijn > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > I did some searching on that one since it sounds interesting. It's laying dormant in bugzilla: https://bugs.php.net/bug.php?id=60128 (the RFC : https://wiki.php.net/rfc/splclassloader) Thanks for the advice so far. I will certainly implement Autoloading. Why didn't i think of that :p Guess my PHP knowledge is a bit rusty since i did make autoloaders before. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php