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

Get PHP in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.