• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
Support Development  • Practical CodeIgniter 3  •
Myth:AuthVulcan - CLI Tools for CI4
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.