Timeline for MVC - Checking data in the model or the controller?
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 29, 2015 at 15:09 | comment | added | Mike Nakis | Oh, you don't have to do anything. Practicality and pragmatism might require that you leave things the way they are, if it already works and if altering it would be a lot of work. But if you want to follow best practices, then: all of the information (including the items that you currently get from some API) should come from the model, and the model should of course do the validation. | |
| Apr 29, 2015 at 15:06 | comment | added | gaetanm | @MikeNakis So to summarise, I have to check this stuff in the model right? | |
| Apr 29, 2015 at 15:01 | comment | added | Mike Nakis | @gaetanm I amended my answer. | |
| Apr 29, 2015 at 15:01 | history | edited | Mike Nakis | CC BY-SA 3.0 |
added 900 characters in body
|
| Apr 29, 2015 at 14:04 | comment | added | gaetanm | I updated my post to give you more details about what I'm doing. | |
| Apr 29, 2015 at 13:21 | history | answered | Mike Nakis | CC BY-SA 3.0 |