HMVC/PAC - how to handle shared abstractions/models?
Posted
by fig-gnuton
on Stack Overflow
See other posts from Stack Overflow
or by fig-gnuton
Published on 2010-06-16T00:42:05Z
Indexed on
2010/06/16
0:52 UTC
Read the original article
Hit count: 397
In HMVC/PAC, what's the recommended way to code if two or more triads/agents share a common model/abstraction?
Do you instantiate a new instance of that model wherever needed, and propogate a change in one to all the other instances via the controllers? Or do instantiate one model at some common upper level, and inject that instance wherever needed? (Or neither if I'm missing something fundamental about these patterns?)
© Stack Overflow or respective owner