blob: 954a5b8f8f27d092b14a9a7690499d64aff3e324 [file] [log] [blame]
Derek Jones8ede1a22011-10-05 13:34:52 -05001###########################
2Using CodeIgniter Libraries
3###########################
4
5All of the available libraries are located in your system/libraries
6folder. In most cases, to use one of these classes involves initializing
7it within a :doc:`controller <controllers>` using the following
8initialization function::
9
10 $this->load->library('class name');
11
12Where class name is the name of the class you want to invoke. For
13example, to load the form validation class you would do this::
14
15 $this->load->library('form_validation');
16
17Once initialized you can use it as indicated in the user guide page
18corresponding to that class.
19
20Additionally, multiple libraries can be loaded at the same time by
21passing an array of libraries to the load function.
22
23::
24
25 $this->load->library(array('email', 'table'));
26
27Creating Your Own Libraries
28===========================
29
30Please read the section of the user guide that discusses how to :doc:`create
31your own libraries <creating_libraries>`