Search code examples
phpcodeignitercodeigniter-4

Call a function from external PHP in Controller codeigniter 4


I want to create external php file with function in it. How to call the function from controller ?

Thank you


Solution

  • if you create php comman function file so create your file in application/library folder and add your file in autoload.php in library and you can use any ware