Is conceptually correct to access DB from Controller? |
If it's the Models save() function it's indeed correct. You trigger Models from Controllers, but should not use the query builder itself in Controllers.
You can read more about it in the userguide: https://codeigniter.com/user_guide/concepts/mvc.html |
Messages In This Thread |
Is conceptually correct to access DB from Controller? - by YanKleber - 04-25-2020, 12:02 PM
RE: Is conceptually correct to access DB from Controller? - by jreklund - 04-25-2020, 12:45 PM
RE: Is conceptually correct to access DB from Controller? - by YanKleber - 04-25-2020, 01:03 PM
RE: Is conceptually correct to access DB from Controller? - by jreklund - 04-25-2020, 01:21 PM
RE: Is conceptually correct to access DB from Controller? - by YanKleber - 04-25-2020, 01:35 PM
|