• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Library config file

#1
I am creating a custom library in Codeigniter 4 which is located in the Library folder.. I have a config file which is in the default config file folder.

Is there a method to shorten the way the variables from the config file are called?

This is the way I do it now inside every function:
config('Myconfig')->varInsideConfig;
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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