Welcome Guest, Not a member yet? Register   Sign In
How to load in custom library in ci4
#4

Looks like Smarty is not using namespaces, so you just have to include the file. You could use the Classmap for autoloading and that should work, I think. But, since you'll know where you're storing it in your app, there's no need for that, just include the file as you would any other PHP file.

Per their crash course:

PHP Code:
include('Smarty.class.php');

// create object
$smarty = new Smarty
Reply


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 kilishan - 11-01-2019, 08:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB