What's the right place for sort algorithm? Model? View? Controller?

#3
[eluser]basementDUDE[/eluser]
[quote author="waldmeister" date="1250097415"]I would go with the first option and put it in the model file.
View and controller are definetly the wrong places as the view only displays the data it gets from the controller and the controller does all the logic between getting the data (from the model) and displaying it (in the view file).[/quote]

I believe model should only deal with database data, so get data sort out in the model is a good idea.


Messages In This Thread
What's the right place for sort algorithm? Model? View? Controller? - by El Forum - 08-12-2009, 04:00 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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