Afficher un message
Vieux 12/03/2008, 16h26   #2
Richard Heyes
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] What's wrong the __autoload()?

> I'm wondering what's wrong with the use of __autoload(), since I see that
> projects like the Zend Framework don't use it and prefer to require_once
> each required file.


Things that happen without you explicitly causing them (ie require() et
al) can lead to confusion.

For example a junior developer who doesn't know of its existence and is
new to a job is less likely to admit ignorance and ask how a class is
being defined when __autoload() is being used.

--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
  Réponse avec citation
 
Page generated in 0,04602 seconds with 9 queries