Is it possible to store libraries in sub folders in codeigniter? For example would something like this work?
-libraries
---sub_folder1
-----someClass.php
---sub_filder2
-----someClass2.php
If it does how should I load and use these libraries?
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.
Library files can be stored in subdirectories within the main “libraries” folder, or within your personal application/libraries folder. To load a file located in a subdirectory, simply include the path, relative to the “libraries” folder. For example, if you have file located at:
You will load it using:
You may nest the file in as many subdirectories as you want.
Explained on the loader class manual page
https://codeigniter.com/user_guide/libraries/loader.html