CodeIgniter Forums
Difference between putting a library inside /libraries and /application/libraries - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Difference between putting a library inside /libraries and /application/libraries (/thread-11263.html)



Difference between putting a library inside /libraries and /application/libraries - El Forum - 09-01-2008

[eluser]geshan[/eluser]
What is the difference between putting a library in /libraries and /application/libraries? Which is better? Why and how?


Difference between putting a library inside /libraries and /application/libraries - El Forum - 09-02-2008

[eluser]xwero[/eluser]
i guess you mean system/libraries. The difference is that in the system directory some of the libraries are being used by CIs core. This also means you can extend your libraries like you would do with CI libraries.
Another benefit is if you use one CI core to power multiple apps you don't have to copy libraries to each app.

From the previous you would think placing libraries in the system directory is the way to go but you have to decide for yourself if the library belongs to the application or if it's very likely the library is going to be shared.


Difference between putting a library inside /libraries and /application/libraries - El Forum - 09-02-2008

[eluser]geshan[/eluser]
Thanks.