Articles → PHP CODEIGNITER → Create a custom library in codeigniter

Create a custom library in codeigniter






Example










<?php
class MyLib
{
    public function MyFunc()
    {
        echo "Calling MyFunc";
    }

}






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

$this->mylib->MyFunc();




Picture showing the output of calling the function from custom library

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, July 24, 2020

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250