• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Including CI4 resources in custom libraries

#1
Hey all,

Quick question:

How do you include CI4 resources (ie. Database, Session, etc etc) in a custom Library?
I know in CI3 you just included a reference to the Super Object then loaded the resource you needed, but as the docs are currently scarce on creating your own libraries in CI4 (unless i am missing them in my current copy I have), would I include CI4 resources/services the same as if I was including them in controllers and models?
Reply

#2
You got it - you create them just like you would in a controller/model.
Support Development  • Practical CodeIgniter 3  •
Myth:AuthVulcan - CLI Tools for CI4
Reply

#3
(03-24-2020, 07:05 PM)kilishan Wrote: You got it - you create them just like you would in a controller/model.
 Cool, Thank you.
Thought that may have been the way to do it. Just wanted to make sure.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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