Posted On: Apr 25, 2024
$this->load->library(‘library_name’); method is used to load a library in CodeIgniter.
Usage:
//Loading Cart library
$this->load->library('cart');
Using Cart library methods
$data = array( 'id' => 'sku_9788C', 'qty' => 1, 'price' => 35.95, 'name' => 'T-Shirt', 'options' => array('Size' => 'L', 'Color' => 'Red') ); $this->cart->insert($data);
Never Miss an Articles from us.
What is the current version of Codeigniter?..
How to check the version of CodeIgniter framework?..