Welcome Guest, Not a member yet? Register   Sign In
Is OK to put chaining Query Builder methods inside Controller?
#2

It's breaking the MVC pattern. You should put your queries-functions inside the model and pass the rest with function parameters or using set functions.

e.g. setYear() and setDate()
and use getYearMonthData()

or getYearMonthData($year, $month)
Reply


Messages In This Thread
RE: Is OK to put chaining Query Builder methods inside Controller? - by jreklund - 04-29-2020, 11:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB