Welcome Guest, Not a member yet? Register   Sign In
What's the difference in library folders?
#1

[eluser]Unknown[/eluser]
Title says it all. There is a SYSTEM/LIBRARIES as well as a SYSTEM/APPLICATION/LIBRARIES folder. When I want custom functions to get booted in via "autoload.php", I need to use SYSTEM/LIBRARIES. What's the other one do/for?
#2

[eluser]Tom Schlick[/eluser]
dont edit the ones in system/libraries. put all of your code into application/libraries. this is so if you upgrade the codeigniter install you dont overwrite any of your code.
#3

[eluser]Shay Falador[/eluser]
I suggest you take the application folder out of the system folder, then LEAVE THE SYSTEM FOLDER, just don't touch the files there.
#4

[eluser]Unknown[/eluser]
Ok, but when I put my own library ("captions.php") into the app/libraries folder and then added its name to the autoload.php file, it wasn't ever loaded. It only worked when I added my file to the system/libraries folder.

Thoughts on why this happened?
#5

[eluser]theprodigy[/eluser]
Quote:Ok, but when I put my own library (“captions.php”) into the app/libraries folder and then added its name to the autoload.php file, it wasn’t ever loaded. It only worked when I added my file to the system/libraries folder.

Thoughts on why this happened?
Is your class name the same as your file name?
Code:
//filename captions.php
class Captions {
// [code goes here]
}
And when you tried to access it, did you use:
Code:
$this->captions->function_name():




Theme © iAndrew 2016 - Forum software by © MyBB