• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Correct understanding of MVC system?

#2
[eluser]Colin Williams[/eluser]
Models provide functions to manipulate data, and Controllers and Views work together to create the interface. Looks like you are trying to use the model to build the interface, so you should rethink your approach. A model should not only never call a view, it should never have a reason to. And this doesn't mean markup will never exist in a model--consider a model that must format data as XML before storing it. This would have nothing to do with the interface though. See the difference?


Messages In This Thread
Correct understanding of MVC system? - by El Forum - 01-01-2010, 06:46 PM
Correct understanding of MVC system? - by El Forum - 01-01-2010, 11:42 PM
Correct understanding of MVC system? - by El Forum - 01-02-2010, 03:55 AM
Correct understanding of MVC system? - by El Forum - 01-02-2010, 05:38 AM
Correct understanding of MVC system? - by El Forum - 01-02-2010, 05:41 AM
Correct understanding of MVC system? - by El Forum - 01-02-2010, 05:48 AM
Correct understanding of MVC system? - by El Forum - 01-02-2010, 05:52 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.