Does PHP namespace autoloading have to use folders?
问题 I am quite confused in implementing namespace in php, especially when it comes to alias - importing classes. I have followed the tutorial from this tutorial: Leveraging PHP V5.3 namespaces for readable and maintainable code (by Don Denoncourt; 1 Mar 2011; for IBM Developerworks) But I don't understand - when __autoload is used, why I have to store the alias classes in folders, but when __autoload is not used, the alias in namespace are just fine, like this below, <?php namespace barbarian;