08-14-2009, 02:37 AM
[eluser]bigtony[/eluser]
[quote author="adijux" date="1250256095"]On the other hand, if you know you're going to use the model just for the form, then it's not all that bad fetching input values from the model.[/quote]
Agree it's not the worse thing in the world, and in some cases can seem like the most pragmatic solution. But for enterprise level apps, it's good to build in maintainability & flexibility from the start, as well as using a consistent approach across all models, etc. And as already stated, it's not that much extra effort.
[quote author="adijux" date="1250256095"]On the other hand, if you know you're going to use the model just for the form, then it's not all that bad fetching input values from the model.[/quote]
Agree it's not the worse thing in the world, and in some cases can seem like the most pragmatic solution. But for enterprise level apps, it's good to build in maintainability & flexibility from the start, as well as using a consistent approach across all models, etc. And as already stated, it's not that much extra effort.