CI4 where should I connect to DB? |
(05-08-2020, 08:25 AM)jreklund Wrote: $this->db are already initialized in Model, no need to connect again. Only if you don't want to extend the "helper" model created for you. Perfect answer, thank you. What if I have several database, are they all initialized automatically? |
Messages In This Thread |
CI4 where should I connect to DB? - by imabot - 05-07-2020, 11:32 PM
RE: CI4 where should I connect to DB? - by php_rocs - 05-07-2020, 11:46 PM
RE: CI4 where should I connect to DB? - by InsiteFX - 05-08-2020, 04:04 AM
RE: CI4 where should I connect to DB? - by jreklund - 05-08-2020, 08:25 AM
RE: CI4 where should I connect to DB? - by imabot - 05-09-2020, 10:49 PM
RE: CI4 where should I connect to DB? - by jreklund - 05-10-2020, 02:02 AM
RE: CI4 where should I connect to DB? - by imabot - 05-10-2020, 05:46 AM
RE: CI4 where should I connect to DB? - by InsiteFX - 05-10-2020, 06:57 AM
RE: CI4 where should I connect to DB? - by jreklund - 05-10-2020, 08:47 AM
RE: CI4 where should I connect to DB? - by imabot - 05-11-2020, 09:06 AM
|