Welcome Guest, Not a member yet? Register   Sign In
mvc all in one file
#6

[eluser]wiredesignz[/eluser]
You can access the Model from your View (its is perfectly ok MVC style) However you may not modify the Model state from your View.

The only caveat is that you are careful not to make the View dependent on any specific Model(s).

Passing a reference to the Model into the View can avoid dependency.

EDIT:
inparo is too fast for me. Wink


Messages In This Thread
mvc all in one file - by El Forum - 03-24-2008, 12:50 PM
mvc all in one file - by El Forum - 03-24-2008, 01:43 PM
mvc all in one file - by El Forum - 03-24-2008, 01:50 PM
mvc all in one file - by El Forum - 03-24-2008, 01:59 PM
mvc all in one file - by El Forum - 03-24-2008, 02:14 PM
mvc all in one file - by El Forum - 03-24-2008, 02:15 PM
mvc all in one file - by El Forum - 03-24-2008, 04:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB