• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What are the CI4 ways to use Database and Library in a Helper?

#1
I need to use a database model and library in my helper. Also need to use a library. In CI 3 I used to do it like following:

PHP Code:
$CI =& get_instance();
$CI->load->model('a_modal');
$CI->load->library('a_library'); 

Now I am little bit confused about the CI 4. What are the ways to do this? What is the CodeIgniter way to do it?

Thanks in advance.
"Who thinks in code"
Perfectly describes who I am
mbparvez.me
Reply


Messages In This Thread
What are the CI4 ways to use Database and Library in a Helper? - by webdevron - 08-15-2019, 10:21 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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