Book Image

Smarty PHP Template Programming and Applications

By : Hasin Hayder, Joao Prado Maia, Lucian Gheorghe
Book Image

Smarty PHP Template Programming and Applications

By: Hasin Hayder, Joao Prado Maia, Lucian Gheorghe

Overview of this book

<p>Smarty is a templating engine for PHP. Designers who are used to working with HTML files can work with Smarty templates, which are HTML files with simple tags while programmers work with the underlying PHP code. The Smarty engine brings the code and templates together. The result of all this is that designers can concentrate on designing, programmers can concentrate on programming, and they don't need to get in each others way so much. Even if you are developing a site on your own, Smarty is a powerful way to make your code clearer to you and others, as well as easier to debug and modify later.</p>
Table of Contents (18 chapters)
Smarty PHP Template Programming and Applications
Credits
About the Authors
About the Reviewer
Preface
Index

Development Team Problems: Common Scenarios


Do you remember those days when you hard coded your business logic into your HTML pages? To some developers, this embedding capability brought an extra level of satisfaction. You designed (let’s read hard coded—we are still in your old days) a lot of pages for your extremely beautiful site and delivered it to the customer. Only to be faced with problems when even a small change needed to be made to the site. Now let’s look at common problems faced during those days by designers, managers, and developers, and their possible solutions (with and without Smarty):

  • Designer’s Problem:

    • Problem: After using your solution for some days, the customer requires a small change in site layout. The change is required within a very short time and there is no way you can extend the deadline or avoid it.

    • Solution without using Smarty: In this situation, you will go to your desk, won’t sleep for some nights and will change all those hard-coded pages by manually...