Welcome Guest, Not a member yet? Register   Sign In
MVC best practices, to display the models
#10

[eluser]Colin Williams[/eluser]
Quote:“Models represent the data source of an application. They must not access the View.” as soon as I understand why

Models are responsible for fetching, structuring, and returning data from resources like databases, web services, and flatfiles. In what scenario do you see this needing a view file? The other way around, the View accessing the Model, is typically fine provided you aren't altering the state of the model (think of it as "read only" access).


Messages In This Thread
MVC best practices, to display the models - by El Forum - 09-20-2008, 05:06 AM
MVC best practices, to display the models - by El Forum - 09-20-2008, 06:50 AM
MVC best practices, to display the models - by El Forum - 09-20-2008, 10:47 AM
MVC best practices, to display the models - by El Forum - 09-20-2008, 10:56 AM
MVC best practices, to display the models - by El Forum - 09-20-2008, 11:24 PM
MVC best practices, to display the models - by El Forum - 09-20-2008, 11:57 PM
MVC best practices, to display the models - by El Forum - 09-21-2008, 12:22 AM
MVC best practices, to display the models - by El Forum - 09-21-2008, 02:56 AM
MVC best practices, to display the models - by El Forum - 09-21-2008, 03:21 AM
MVC best practices, to display the models - by El Forum - 09-21-2008, 03:25 AM
MVC best practices, to display the models - by El Forum - 09-21-2008, 11:40 AM
MVC best practices, to display the models - by El Forum - 09-21-2008, 12:06 PM
MVC best practices, to display the models - by El Forum - 09-21-2008, 12:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB