Welcome Guest, Not a member yet? Register   Sign In
why use models?
#6

[eluser]nuwanda[/eluser]
Models allow you to use the same data functions for many controllers. Each controller calls the same model method, perhaps with different parameters which then return data.

Without models you'd be writing the same data retrieval code in each controller. Major headache.

Of course, I guess it's possible to have an app where each controller method accesses unique data.


Messages In This Thread
why use models? - by El Forum - 12-25-2010, 05:24 AM
why use models? - by El Forum - 12-25-2010, 06:12 AM
why use models? - by El Forum - 12-25-2010, 10:45 AM
why use models? - by El Forum - 12-25-2010, 03:02 PM
why use models? - by El Forum - 12-27-2010, 12:36 PM
why use models? - by El Forum - 12-29-2010, 02:06 AM
why use models? - by El Forum - 12-29-2010, 02:41 AM
why use models? - by El Forum - 12-29-2010, 02:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB