Welcome Guest, Not a member yet? Register   Sign In
Dependency injection
#8

[eluser]xwero[/eluser]
TheFuzzy0ne i think your idea about models creates complexity that isn't needed. If a model method requires data from another model to do its job both of the models are needed. Maybe you only need other methods from the first model to get the content for the page but that doesn't make the other model a secondary citizen.

It is true the coupling in the controller will create more code than coupling in the model but i think it's a small price to pay for better maintainable code.


Messages In This Thread
Dependency injection - by El Forum - 03-27-2009, 04:35 AM
Dependency injection - by El Forum - 03-27-2009, 05:48 AM
Dependency injection - by El Forum - 03-27-2009, 06:03 AM
Dependency injection - by El Forum - 03-27-2009, 06:13 AM
Dependency injection - by El Forum - 03-27-2009, 07:45 AM
Dependency injection - by El Forum - 03-27-2009, 08:09 AM
Dependency injection - by El Forum - 03-27-2009, 08:13 AM
Dependency injection - by El Forum - 03-27-2009, 09:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB