![]() |
What's the difference in library folders? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: What's the difference in library folders? (/showthread.php?tid=27322) |
What's the difference in library folders? - El Forum - 02-07-2010 [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? What's the difference in library folders? - El Forum - 02-07-2010 [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. What's the difference in library folders? - El Forum - 02-07-2010 [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. What's the difference in library folders? - El Forum - 02-07-2010 [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? What's the difference in library folders? - El Forum - 02-08-2010 [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.Is your class name the same as your file name? Code: //filename captions.php Code: $this->captions->function_name(): |