Welcome Guest, Not a member yet? Register   Sign In
Protect helpers and setup db connection for helpers
#2

(This post was last modified: 12-24-2024, 04:07 AM by InsiteFX.)

1) No, you do not need that line in the top of CI 4.
2) Database connection yes you need to initialize it in a helper, but here is an easier way.

PHP Code:
$db db_connect(); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Protect helpers and setup db connection for helpers - by InsiteFX - 12-23-2024, 10:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB