Smarty PHP Template Programming and Applications
  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
  Index > Chapter 3
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 3: What Designers Need to Know

In the previous chapters you learned about the basic concepts and setting up of Smarty. As a Smarty developer, you have to understand some basic procedures and know how. This chapter will guide you through the necessary steps to kick start template designing. Before starting template design, you should always be aware of the main objective of Smarty. Let me repeat again for you that the main goal of Smarty is to separate the presentation layer from business logic. This chapter will show you the best way to develop templates while keeping this goal in perspective, and at the same time satisfying your programmers, helping you to co‑operate with them, minimizing their task, and increasing the reusability of your final output.

One more thing you should be aware of is that you shouldn't mix up identities. Most often, the designers are to some extent programmers and vice versa. While designing you must totally forget that you are also a programmer and look at things only from a designer's perspective. If you mix up your identities, there will be a great risk of non-standard designs.

  • Chapter 3: What Designers Need to Know
    • Development Team Problems: Common Scenarios
    • Roles of a Template Designer and a Programmer
    • Definitions and Concepts for Designers
      • Concept of Reusability and Components
      • Splitting into Components
      • How to Design Table-less Layouts?
      • Handy Built-in Tags
    • Choosing an Editor for Template Design
    • Collaborating with Programmers
    • 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