Smarty PHP Template Programming and Applications
  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
  Index > Chapter 1
Book Contents

Preface
Chapter 1: Introduction to Smarty
Chapter 2: Smarty Site Architecture
Chapter 3: What Designers Need to Know
Chapter 4: Creating a Template
Chapter 5: Advanced Templating
Chapter 6: Smarty Functions
Chapter 7: Debugging for Designers
Chapter 8: Built-in Smarty Variables and Methods
Chapter 9: Caching and Performance
Chapter 10: Extending Smarty with Plug-ins
Chapter 11: Filters
Chapter 12: Internationalization

Index

Free Content
Chapter 6: Smarty Functions[345 KB PDF]

Code Download

Download
Smarty Cheat Sheet


Download PDF Version [285 KB]

Download GIF Version [304 KB]


 

Chapter 1: Introduction to Smarty

Today, websites are past the level of presenting summary and contact data for companies and projects. With the evolution of the Internet, most websites are now stand‑alone businesses rather than summary presentations of companies. More than that, complex applications' developers have embraced the idea of using websites as interfaces for their software.

For more than ten years, PHP has been one of the best choices for web developers being the most complete open‑source web programming language. With growth of the complexity of PHP applications, a new problem that was raised was, how to separate programmers' code (PHP) from designers' code (HTML), or better phrased, how to separate the content from presentation.

Smarty, a PHP templating system, was born to solve this problem.

  • Chapter 1: Introduction to Smarty
    • Templating Systems
      • Why Use a Templating System?
      • The Smartness of Smarty
      • Smarty Alternatives
    • A Rough Guide to the Software Design Process
      • Working in Teams: Layers and Separation of Concerns
    • Smarty—The Ultimate Templating System for PHP
      • Is Smarty Fast?
      • Is Smarty Secure?
    • Smarty's Main Features
      • Variable Modifiers
      • Template Functions
      • Debugging
      • Plug-ins
      • Filters
    • Smarty Internals
    • Installing and Configuring Smarty
      • Step 1: Obtaining Smarty
      • Step 2: Configure PHP to Find the Smarty Libraries
        • On Windows
        • On Linux
      • An Alternative to Step 2: Using Smarty without Having Full Access to the System
      • Step 3: Set Up Smarty for Your Application
      • Step 4: Verifying the Installation
      • Smarty Development Versions on CVS
    • Upgrading a Smarty Site
    • Summary

 

 

 

Paperback 250 pages
Released: April 2006
ISBN: 190481140X



eBook Version Also Available
Buy the book & eBook together and get 80% off the eBook
 

     

 




View the book details
on PacktPub.com

 


 

  This website is owned and maintained by Packt Publishing Ltd, 2006. All rights reserved. Terms and Conditions