Welcome Guest, Not a member yet? Register   Sign In
Changing db results in model before passing
#9

[eluser]timotheus[/eluser]
[quote author="BorisK" date="1285190809"]Consider doing this logic outside of the Model class. Moving it to a controller, view or helper function would make it a better place.[/quote]

Thanks for the input. I am still somewhat new to the MVC framework ideology..

I was under the impression that it's best to keep logic out of views, and keeping controllers as lean as possible. I suppose a helper function could have been appropriate, but I really don't see me having to do this small tweak on anything else; I wouldn't reuse it.


Messages In This Thread
Changing db results in model before passing - by El Forum - 09-21-2010, 02:45 PM
Changing db results in model before passing - by El Forum - 09-21-2010, 04:26 PM
Changing db results in model before passing - by El Forum - 09-21-2010, 05:40 PM
Changing db results in model before passing - by El Forum - 09-21-2010, 08:30 PM
Changing db results in model before passing - by El Forum - 09-22-2010, 09:53 AM
Changing db results in model before passing - by El Forum - 09-22-2010, 10:01 AM
Changing db results in model before passing - by El Forum - 09-22-2010, 10:21 AM
Changing db results in model before passing - by El Forum - 09-22-2010, 10:26 AM
Changing db results in model before passing - by El Forum - 09-22-2010, 10:37 AM
Changing db results in model before passing - by El Forum - 09-22-2010, 11:01 AM
Changing db results in model before passing - by El Forum - 09-22-2010, 11:38 AM
Changing db results in model before passing - by El Forum - 09-22-2010, 12:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB