MVC best practices
To effectively use MVC, adhere to the following best practices:
- The model should be a simple object with read and write properties to support a single view.
- The view should focus on standards-based markup.
- Logic in the view should be limited to user interaction and not include business logic.
- Controllers should not know anything about how the data inthe model is manipulated in the view.
- Controllers should not know anything about how the data is persisted beyond the model.
Comments
Comments are closed