5 stars award

Smarty 2.6.26

Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. This is best described in a situation where the application programmer and the template designer play different roles, or in most cases are not the same person.
For example, let`s say you are creating a web page that is displaying a newspaper article.

  • The article $headline, $tagline, $author and $body are content elements, they contain no information about how they will be presented. They are passed into Smarty by the application.

  • Then the template designer edits the templates and uses a combination of HTML tags and template tags to format the presentation of these variables with elements such as tables, div`s, background colors, font sizes, style sheets, svg etc.

  • One day the programmer needs to change the way the article content is retrieved, ie a change in application logic. This change does not affect the template designer, the content will still arrive in the template exactly the same.

  • Likewise, if the template designer wants to completely redesign the templates, this would require no change to the application logic.

  • Therefore, the programmer can make changes to the application logic without the need to restructure templates, and the template designer can make changes to templates without breaking application logic.

One design goal of Smarty is the separation of business logic and presentation logic.

  • This means templates can certainly contain logic under the condition that it is for presentation only. Things such as including other templates, alternating table row colors, upper-casing a variable, looping over an array of data and displayingit are examples of presentation logic.

  • This does not mean however that Smarty forces a separation of business and presentation logic. Smarty has no knowledge of which is which, so placing business logic in the template is your own doing.

  • Also, if you desire no logic in your templates you certainly can do so by boiling the content down to text and variables only.

User's rating:

  • Currently 0.00/5
  • 1
  • 2
  • 3
  • 4
  • 5
Enlarge the screenshot of Smarty
[ Enlarge Image ]
Download 0.12MB Smarty

Download Direct

(0.12MB, Extension: PHP)

Download alternate to Smarty solution

Look at the free or trial alternatives and similar apps to Smarty software by the tags. It's possible also to find substitutes for the most popular titles in the Website Building category.

| Template Engine | Smarty | Presentation | Php |

History updates (Complete changelogs since the listing on this site)

2.6.26 [10-07-10]

- fix E_NOTICE when sessions are disabled (mohrt)

Average review rating :

Useful independent reviews and opinions of the users

Review SmartyWrite a review « Be the first to post a review for Smarty download!

Predicted future versions and notices:

The doDownload.com constantly monitors the update of all programs, including information from the Smarty 2.6.27 changelog file, however sometimes it can happen that data are not complete or are outdated.We assume that author continue's to develop 2.7.0 version with further advanced features, and soon you will be informed. Equally important 3.0.0 upgrades of the program we will continue to monitor. Full Smarty description has been compared with the overall software database and our algorithm has found the following applications (are showed below).