Welcome Guest, Not a member yet? Register   Sign In
MVC Structure Question
#2

[eluser]Michael Wales[/eluser]
I'd put it in the model as it is a way of accessing the data the model represents.

The controller would be used to implement any class specific processes you want to apply to that data (if it's app specific - throw it in the model) and to pass that data on to the view.

View would do any final processing to make that data presentable (applying CSS classes, using PHPs date() function to turn 2008-06-09 into "Mon, 9 Jun", etc.


Messages In This Thread
MVC Structure Question - by El Forum - 06-08-2008, 10:41 PM
MVC Structure Question - by El Forum - 06-08-2008, 10:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB