Chapter 16. Controllers: linking models and views
This chapter covers
- Acting on user input
- Updating models in response to user actions
- Passing updated models to views for display
- Completing the console version of The Crypt
Breaking programs into modules encourages you to give each module a specific task. Chapters 14, 15, and 16 form a trilogy, with each chapter looking at a common task a module might perform. You met models in chapter 14 and views in chapter 15 and now you link ...