Codeigniter Libraries
ADVERTISEMENTS
Codeigniter has some predefined library, All of the available libraries are located in your system/libraries/ directory.
In most cases, to use one amongst these categories involves initializing it inside a controller mistreatment the subsequent data format method:
How to load a library?
$this->load->library('library_name');
Such as “form_validation” is a predefined library in codeigniter, which is used to form validation, for example:
$this->load->library('form_validation');
How to load multiple libraries at a time?
multiple libraries are often loaded at constant time bypassing the associate array of libraries to the loading technique
$this->load->library(array('email', 'table'));
<?php
$this->load->library(
array('email', 'table')
);
List of Predefined Libraries in Codeigniter
- Cache
- Calendar
- Cart
- Driver
- Encrypt
- Encryption
- Form_validation
- Ftp
- Image_lib
- Javascript
- Migration
- Pagination
- Parser
- Profiler
- Table
- Session
- Trackback
- Typography
- Unit_test
- Upload
- User_agent
- XMLrpc
- XMLrpcs
- Zip