Timeline for Why put the business logic in the model? What happens when I have multiple types of storage?
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 21, 2012 at 9:24 | comment | added | Steffen Winkler | I'm a C#/Java (only a few projects there) developer. It seems that I misunderstood what the model does. Putting the 'business logic' into the controller really was only a aftereffect (my train of thought went 'okay, I've the model for data (read: database connection/storage), so my business logic needs to get in the controller because I've to apply it before storing the data in the database'. Just have to move everything one level down from the controller. Actually, that solves a problem I currently had (supporting MySQL and MSSQL in one program) | |
| Nov 21, 2012 at 9:11 | history | answered | Duke | CC BY-SA 3.0 |