CodeIgniter Forums

Full Version: Difference between putting a library inside /libraries and /application/libraries
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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

El Forum

[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.

El Forum

[eluser]geshan[/eluser]
Thanks.