Best way of __autoload'ing from several folders?
Posted: Sat Dec 20, 2008 1:28 pm
Hi there,
I'm interested in knowing how people are __autoload'ing from several different folders. Do you have a class that caches the paths of the files, or do you perhaps do something like database_mysql where _ gets replaced by / and then it becomes database/mysql.php ? or do you setup a static variable or an ini file or ... ? So what is the way you tell your autoload where certain classes are located?
I'm interested in knowing how people are __autoload'ing from several different folders. Do you have a class that caches the paths of the files, or do you perhaps do something like database_mysql where _ gets replaced by / and then it becomes database/mysql.php ? or do you setup a static variable or an ini file or ... ? So what is the way you tell your autoload where certain classes are located?