Welcome Guest, Not a member yet? Register   Sign In
Is conceptually correct to access DB from Controller?
#2

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
Reply


Messages In This Thread
RE: Is conceptually correct to access DB from Controller? - by jreklund - 04-25-2020, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB