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 16. Controllers

16.1 Controllers and request objects 357
16.2 Using Page Controllers 361
16.3 Building a Front Controller 369
16.4 Summary 376

I’ve never flown a fighter aircraft, and I don’t believe I want to try it. (Nor do I think they would let me. Those planes are expensive.) I know only what I’ve seen in documentaries: you make too sharp a turn, the G force rises steeply to 7, 8, or 9 or thereabouts, and whoops...you’re out.

You come out of the turn; eventually you regain consciousness. But...you don’t remember what happened. You start to ask questions. Who am I? Where am I? Ahhh...now I remember. I’m in a cockpit! What’s that ahead? A mountain? The ground?

PHP does this. It forgets. When PHP runs as mod_php in an Apache process ...

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