Welcome Guest, Not a member yet? Register   Sign In
Call Model function from Controller
#5

Yes, I managed to make a completely dynamic API ResourceController passing in all these properties as config settings. That way I avoid having a Controller AND a Model per resource. I just config them all in a single file ... as all the basic CRUD methods are the same across a ResouceController. Will see if this bite me later down the road ... but pretty confident for now ; ).
Reply


Messages In This Thread
Call Model function from Controller - by bustersg - 09-27-2019, 08:24 PM
RE: Call Model function from Controller - by blaasvaer - 09-17-2020, 11:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB