Codeigniter libraries
Codeigniter libraries : Codeigniter libraries provides you rich functionality with ready made libraries. You can also create your own library.
Using Codeigniter libraries
$this->load->library('library_name');
For Example If We Need Form validation library
$this->load->library('form_validation');
Load Multiple Codeigniter libraries
$this->load->library(array('form_validation','email'));
You Can Also Auto-load Libraries
Go to application/config/autoload.php
Now go to the below lines and add the library name you want to automatically load.
$autoload['libraries'] = array('email','form_validation');
Advertisements
Add Comment
📖 Read More
- 1. Array Helper
- 2. CAPTCHA Helper
- 3. Cookie Helper
- 4. Date Helper
- 5. Directory Helper