Database connection in static method |
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] |
Messages In This Thread |
Database connection in static method - by Cyto5 - 06-26-2020, 04:43 PM
RE: Database connection in static method - by Cyto5 - 06-27-2020, 09:19 PM
|