Chapter7.Using Templates


Chapter 7. Using Templates

IN THIS CHAPTER

  • The What and Why of Templates

  • The Smarty Template Engine

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.



PHP 5 Unleashed
PHP 5 Unleashed
ISBN: 067232511X
EAN: 2147483647
Year: 2004
Pages: 257

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net