Chapter 7. Using Templates
IN THIS CHAPTER
As PHP becomes more of a central component of a website, the need to properly manage your code base becomes more important. This is especially true as multiple people start working on the same website. One of the best ways to keep your PHP applications manageable is to separate the HTML of your website from the actual PHP code that powers it. This process is called separation of presentation logic from application logic. In this chapter, I examine some of the most common methods in use for separating presentation and application logic, including the PHP template package called Smarty.
|