Welcome Guest, Not a member yet? Register   Sign In
How to dynamically set properties of the model?
#3

(09-17-2020, 04:42 AM)InsiteFX Wrote: Then Create a BaseModel and pass the parameters through it's constructor.

Your BaseModel should extend the CodeIgniter's Model and all of your Model's
will extend the BaseModel.

Thanks. Never thought of it that way ... ended up creating a method and pass in the params by calling that after init.
Reply


Messages In This Thread
RE: How to dynamically set properties of the model? - by blaasvaer - 09-17-2020, 04:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB