Afficher un message
Vieux 18/09/2007, 14h59   #16
NoDude
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Accessing Class Method

Ahem... I have a feeling I'll get shot, stabbed and hung for this,
buuuuuut... There's really no need for require_once in __autoload,
because if you've reached the __autoload function, the class is
obviously not present (no sense making php check for it a second
time). Also, if you're including from the same directory, use './'.
$class_name.'.php', that way php won't look in the includes paths.

  Réponse avec citation
 
Page generated in 0,04364 seconds with 9 queries