Welcome Guest, Not a member yet? Register   Sign In
Model calls from view?
#2

[eluser]Randy Casburn[/eluser]
Hi Erik,

First, I'm not a zealot when it comes to MVC, okay?

Your approach is perfect. But this statement is true only if several preconditions are met. First, if you only ever build one application. Two, if you never want to change your "all users matching" result set. Three, if you never ever use the "top three" result set again.

So may I ask you to shift your thinking a little bit? Beyond one application and one "page" view.

The idea behind any design pattern is not rigidity, but making our software more robust and easier to modify...and reuse.

So the bottom line? If you don't ever want to stop rewriting the same stuff over and over and over...your design is perfect. Otherwise, listen to some of the smart folks here like wiredesignz, xwero, the dereks, and many others. Soon, you'll simply be reusing huge parts of controllers and modules and customizing templates for the views. Then what "makes sense" will have a different context.

Just a thought...but one I hope is helpful,

Randy


Messages In This Thread
Model calls from view? - by El Forum - 07-16-2008, 03:43 PM
Model calls from view? - by El Forum - 07-16-2008, 04:44 PM
Model calls from view? - by El Forum - 07-16-2008, 07:29 PM
Model calls from view? - by El Forum - 07-17-2008, 05:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB