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 13. Using templates to manage web presentation

13.1 Separating presentation and domain logic 296
13.2 Which template engine? 299
13.3 Transformation: XSLT 308
13.4 Keeping logic out of templates 313
13.5 Templates and security 322
13.6 Summary 323

Web presentation, in its simplest form, is a plain HTML document. PHP helps us insert dynamic content into the HTML document simply. But as the program code grows more complex, the combination poses new challenges. Increasingly, program code and HTML markup appear as Siamese twins: They’re together all the time, but they might be better off spending some time apart. They might prefer to meet and work together when it’s actually needed instead of being inseparably attached to each other. Adding ...

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