Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codeigniter 2.0 third_party folder

Tags:

What is this the third_party folder in codeigniter 2.0 and how to use that?

like image 819
user634850 Avatar asked Mar 09 '11 15:03

user634850


2 Answers

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

like image 114
Ross Avatar answered Oct 16 '22 05:10

Ross


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!

like image 42
John Erck Avatar answered Oct 16 '22 06:10

John Erck