How to load in custom library in ci4 |
(11-01-2019, 02:52 AM)seunex Wrote: I was trying to load custom libraries in ci4 to try and implement smarty with ci4 as we do in ci3 has anyone here try and be succeeded. I use firebase/php-jwt library with composer Code: composer require firebase/php-jwt Then I just load it in my controller: app/Controllers/MyController.php PHP Code: use Firebase\JWT\JWT; It's working for me, I hope it helps others too. It's better in my point of view |
Messages In This Thread |
How to load in custom library in ci4 - by seunex - 11-01-2019, 02:52 AM
RE: How to load in custom library in ci4 - by InsiteFX - 11-01-2019, 08:38 AM
RE: How to load in custom library in ci4 - by seunex - 11-01-2019, 08:49 AM
RE: How to load in custom library in ci4 - by kilishan - 11-01-2019, 08:59 AM
RE: How to load in custom library in ci4 - by 5flex - 02-09-2020, 10:04 AM
RE: How to load in custom library in ci4 - by laynebay - 07-29-2020, 05:57 PM
RE: How to load in custom library in ci4 - by x1250 - 02-10-2020, 07:27 PM
RE: How to load in custom library in ci4 - by seunex - 03-01-2020, 05:36 AM
RE: How to load in custom library in ci4 - by 404NotFound - 04-05-2020, 12:25 PM
|