Re: __autoload alternative

From: Date: Mon, 22 Sep 2008 10:47:16 +0000
Subject: Re: __autoload alternative
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-280675@lists.php.net to get a copy of this message
Shelley schreef:
Hi all, Is there any way to auto load a class without using __autoload() function? As I want to load some classes under different paths, and that caused redeclare of __autoload function. Any suggestions appreciated.
spl_autoload_register() http://php.net/manual/en/function.spl-autoload-register.php allows you to chain autoloaders


« previous php.general (#280675) next »