Autoloader::add_namespace('PackageName', __DIR__.DS.'classes'.DS);
A native PHP 5.3 concept: http://nl3.php.net/namespacesScott Travis wrote on Wednesday 31st of August 2011:More specific questions are "what is a namespace?"
Because everything is explicit pretty much like Kohana, but the classes no longer cascade as they're namespaced. Everything in a package should be namespaced, though you can use any classname when you register classes in a bootstrap file. If your classes are namespaced with your package namespace you can just register the namespace like Julian said and use them like "PackageName\ClassName" after that. And will be auto-detected, but with the namespace attached to tell the autoloader you're request a class from the package and not from app or core. You can also add the following instruction in the bootstrap to make your classes useable without the namespace prefix (they'll be aliased to global when requested), though aliasing only works when the classes are registered in the bootstrap:and "why doesn't Fuel just auto-detect and make usable all of the files in the package like Kohana does?"
Autoloader::add_core_namespace('PackageName');
It looks like you're new here. If you want to get involved, click one of these buttons!