Welcome Guest, Not a member yet? Register   Sign In
Global model
#2

(This post was last modified: 05-15-2019, 07:31 AM by kilishan.)

A couple of ideas:

1. You could extend all models from your own BaseModel that instantiates that other model and makes it available.
2. You could create a Service for that model so that only a single instance is always loaded whenever you call it.

Though, honestly, it sounds like that should be a library not a model, if you ask me.
Reply


Messages In This Thread
Global model - by Piotr - 05-15-2019, 07:22 AM
RE: Global model - by kilishan - 05-15-2019, 07:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB