ErrorException Undefined variable: db |
$db doesn't exists, use $this->db to access the variable from your base controller.
Also, don't try to use CI4 the "CI3 way". There's no more global object linking to everything like there was in CI3. The model class already have a reference to the db object, so there's no need to load it in the base controller and keep a reference in memory. |
Messages In This Thread |
ErrorException Undefined variable: db - by lordmight - 07-04-2021, 03:18 AM
RE: ErrorException Undefined variable: db - by includebeer - 07-04-2021, 07:21 AM
RE: ErrorException Undefined variable: db - by ikesela - 07-04-2021, 10:32 AM
RE: ErrorException Undefined variable: db - by InsiteFX - 07-05-2021, 08:59 PM
|