I wonder if there is any library for spl_autoload where one can just set all the folders and it will take care of loading them correctly.
I wonder if there is any library for spl_autoload where one can just set
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Frameworks such as Zend Framework have components you can use (I mention ZF because it is loosely coupled) which wrap spl_autoload. But my experience is that if that’s all the functionality you want to use, it’s probably easier/quicker/lighter to write your own autoload function and register it.