I put all my classes in “fuel/app/classes/” folder, for a simple call to MyClass::MyMethod()
Start to store classes in “fuel/app/classes/lib/” with the given “namespace lib”.
Calling the lib\MyClass::MyMethod() or prescribing “use lib” much more comfortable than proposed Folder_MyClass::MyMethod() see http://docs.fuelphp.com/general/classes.html
Is there any way to load a specific namespace is in “bootstrap.php”, that would not have to write any “use lib” at the beginning of the file (controller, model), or not add everytime to call like “lib\”?
You could probably add
libas a Core Namespace. Inbootstrap.php:Autoloader::add_core_namespace('lib');http://docs.fuelphp.com/classes/autoloader.html#/method_add_core_namespace
You should then just be able to use
\MyClass::MyMethod();without having to prefix it with the namespace or without having toUse lib;