I am trying to get Laravel 4 to automatically download auxiliary files from the app/helpers (I created this, obviously).
I started from this Composer path: add the path to composer.json , and then run dump-autoload . This did not work. Then I tried with the app/start/global.php , which didn't work either.
Notice, I do not throw classes into auxiliary files - what are Facades and Packages for. I only need small helper functions like those that belong to Laravel (in the vendor directory). I just say this because it seems that the drafters of the dump list the classes (only with namespaces).
What can I do to get helpers to boot automatically?
Update
It also seems that the ClassLoader::addDirectories() function does not work for classes - why is it there? Should I use both this and Composer?
Edit
It seems my question is not understood. In my app/helpers , I have a file called paths.php . I want to be able to call a function inside it ( theme_path($location) ) in a global scope.
source share