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

This is more a conceptual question. I am learning MVC and I recently watched a video that supposed to show how to implement a simple CRUD by using the basic query builder methods. Everything was doing well when he called the method save() directly from the Controller.

Maybe I just didn't get correctly the philosophy behind the MVC but it looks totally odd to me.

What am I missing here?

Dodgy
Recovering the wasted time...
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB