Using Codingox Libraries

All of the available libraries are located in your libraries/ directory. In most cases, to use one of these classes involves initializing it within a controller using the following initialization method:

$this->library('file_name');

Where ‘file_name’ is the name of the file you want to invoke. For example, to load the Form Validation Library you would do this:

$this->library('form');

Once initialized you can use it as indicated in the user guide page corresponding to that class.

Additionally, multiple libraries can be loaded at the same time by passing file name of libraries to the method.

Example:

$this->library('form', 'media');

Creating Your Own Libraries

Please read the section of the user guide that discusses how to create your own libraries.