Articles → PHP CODEIGNITER → Create A Custom Library In Codeigniter
Create A Custom Library In Codeigniter
- Create a new file inside the "libraries" folder.
- The name of the file is "MyLib.php" (you can give any name).
- Write the following code inside the file "MyLib.php"
- Now call the class inside the controller using the following code
Click to Enlarge