O'Reilly logo

Building Online Communities with phpBB 2 by Stoyan Stefanov, Mike Lothar, Jeremy Rogers

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

Using phpBB Templates

In the previous examples, there wasn’t much graphical user interface work involved, but normally there will be, if you’re developing new phpBB scripts or extending existing ones. Separating the programming code from the user interface is generally a good programming practice, often referred to as a "separation of logic from presentation". For web applications such as phpBB, this means having the PHP code and logic separated from the HTML code that is used to present the results to the user.

This is normally achieved by using the so called templating systems (templating engines), which consist of two parts:

  • Static HTML template files that contain the rules of displaying the content; "rules" mean formatting, layout, and so on ...

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