Welcome Guest, Not a member yet? Register   Sign In
Best MVC design practice?
#9

[eluser]mddd[/eluser]
Your way is also perfectly valid. There is no one true solution. Separation also has its advantages.

I try to combine related things because they are often queried together. In your example, you would first have to load the rotation info : $this->rotation->get($id) which takes a database query and then you look up the students like you showed.. that's another query. If you do that a lot it is less efficient.


Messages In This Thread
Best MVC design practice? - by El Forum - 08-24-2010, 07:49 AM
Best MVC design practice? - by El Forum - 08-24-2010, 08:10 AM
Best MVC design practice? - by El Forum - 08-24-2010, 08:11 AM
Best MVC design practice? - by El Forum - 08-24-2010, 09:29 AM
Best MVC design practice? - by El Forum - 08-24-2010, 10:14 AM
Best MVC design practice? - by El Forum - 08-24-2010, 10:31 AM
Best MVC design practice? - by El Forum - 08-24-2010, 10:40 AM
Best MVC design practice? - by El Forum - 08-24-2010, 10:44 AM
Best MVC design practice? - by El Forum - 08-24-2010, 10:48 AM
Best MVC design practice? - by El Forum - 08-24-2010, 12:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB