Welcome Guest, Not a member yet? Register   Sign In
Where to place functions that work with database
#6

I like both ideas, and probably both are applicable depending on your code. I typically put things into my Model if it is primarily dealing with that models table and (moderately) its relations, and reserve make a separate class (Library) for something that is going to "run" my existing models (similar to Controllers but not as a integral part of the MVC user interaction).
Reply


Messages In This Thread
RE: Where to place functions that work with database - by MGatner - 05-14-2019, 07:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB