Welcome Guest, Not a member yet? Register   Sign In
Database connection in static method
#1

In CI4, how would you create a static variable holding the $db connection to use inside of static methods? Everything I have tried either brings it only as a non-static var or doesn't seem to work. I even tried Manual Model Creation but was unable to get that to work either.

Thanks[url=https://codeigniter.com/user_guide/models/model.html#id22][/url]
Reply


Messages In This Thread
Database connection in static method - by Cyto5 - 06-26-2020, 04:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB