O'Reilly logo

PHP in Action: Objects, Design, Agility by Chris Shiflett, Marcus Baker, Dagfinn Reiersol

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. User interaction

15.1 The Model-View-Controller architecture 340
15.2 The Web Command pattern 346
15.3 Keeping the implementation simple 349
15.4 Summary 355

One-way communication is entertaining at best, rude and authoritarian at worst. So far we’ve looked at presentation as if there were little or no opportunity for the user to talk back to the application. This is obviously not enough for most web applications.

In some applications, though, talking back may not be necessary. You might just want to get the latest stock quotes from a database and display them in a list. That’s relatively easy to do; eliminating interaction simplifies our job as programmers greatly.

When we do need interaction, there are challenges that are specific ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required