CodeIgniter Forums
Loading 3rd party libraries - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Loading 3rd party libraries (/showthread.php?tid=6663)



Loading 3rd party libraries - El Forum - 03-06-2008

[eluser]mikegioia[/eluser]
Hi Guys -

I was wondering what the best way was to load 3rd party libraries. For example, say I wanted to use MagpieRSS, should that go into the libraries folder which could then be autoloaded? Or is it more of a plug-in and go in the plug-ins directory?

Any help on this would be greatly appreciated.

Thanks,
Mike


Loading 3rd party libraries - El Forum - 03-07-2008

[eluser]xwero[/eluser]
Most third party libraries can be used out of the box with CI. Drop them in the application/libraries directory and use them like you would use a CI library. If the library requires a init then you will have to change the construct of the library to take parameters or you could add an initialize method so you can autoload the library.