What is this the third_party folder in codeigniter 2.0 and how to use that?
Packages are new to CI2.0 that allow for the easy distribution of complete sets of resources in a single directory
, containing models, libraries, helpers etc...but not to be confused with modules, as Phil Sturgeon points out quite helpfully.
$this->load->add_package_path()
See the docs for more
If your "third party library code" requires a single file to be "loaded" in order for you to make full use of the library then it should go in your libraries directory. If your "third party library code" is a folder full of files, many of which may be "loaded" and made use of, then it should go in your third_party directory.
That's my interpretation of the CodeIgniter docs for the Loader Class found here: https://www.codeigniter.com/user_guide/libraries/loader.html
Is my interpretation incorrect? If so LMK!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With