...
CodeIgniter, Tutorials

How to use Codeigniter Libraries?

29 January 2019

In Codeigniter, All libraries are located in “system/libraries/” directory. We can initialize library using this method:

Load Codeigniter Library

$this->load->library('class_name');

For example, to load the Form Validation Library we would do this:

$this->load->library('form_validation');

Load Multiple Codeigniter Libraries

Multiple libraries can be loaded at same time by passing an array of libraries to the load method.
For example,

$this->load->library(array('email', 'table'));

Leave a Comments