O'Reilly logo

PHP 5 CMS Framework Development by Martin Brampton

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

Summary

XHTML is a critical output from our CMS. Getting down to the details involved in its creation throws up awkward issues. While there are no completely ideal solutions, we have reviewed a variety of approaches. Although it can be interpreted in a variety of ways, the Model-View-Controller pattern incorporates sound ideas.

It is as well not to lose sight of the fact that PHP is itself an excellent templating language, with various means of handling XHTML. For most sections of XHTML, the mechanism I have advocated is the use of heredoc, along with some devices that allow a good deal of flexibility on what can be included into a heredoc.

We have looked at a flexible rendering engine that is complete for pure PHP templates, and can be ...

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