Friday, November 26, 2010

Why use Smarty Template engine - php ?

One of Smartys primary design goals is
to facilitate the separation of application code from presentation.

Typically, the application code contains the business logic of your application, written and maintained in PHP code. This code is maintained by programmers.

The presentation is the way your content is presented to the end user, which is written and maintained in template files. The templates are maintained by template designers.

This paradigm serves several purposes:
1) Designers will work only on the front end design. They will have no option to change the application code. They can use specified application variables provided by the programmers.

2) Errors are controlled by Smarty error handling routines making it easy for the designers.

3) Designers are independent to change and re-design the presentation layer without intervention from the programmer.

4) Programmers will work only with the application code. They will have no access to modify the front end template design.

5) It keeps the business logic and presentation logic seperate. So if one is edited or gets deleted accidentally , other remains intact or unharmed.

6) It has many secuirity options so that designers cannot break the secuirity.



Links:

Official Site of Smarty | Download | Documentation

No comments:

Post a Comment

Welcome

Author

It is IT related blog site and Experiences of Zahid Bin A. Rouf, which has posts on technology,tips and tricks,links,troubleshoot,tutorials,computer related suggestions,reviews

Subscribe

Like Us

bangladesh-data
Bangladesh-data Blog
CodeInclude
CodeInclude Blog
tictactoe
TicTacToe Game

Bangladesh Info

CodeInclude

"There are two blessings which many people lose: (They are) Health and free time for doing good."

~Narrated by Ibn 'Abbas
~Said by Prophet Muhammad (sallallahu alayhi wasallam)
[Ref: Bukhari Hadith:Volume 8, Book 76:Softening the Heart, Number 421 ]

Pageviews last month

Flickr