Get Smarty



Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty


Want your site showcased? email us a press release.

Kate gets Smarty 3 Dec 13, 2010

The popular KDE text editor Kate now has Smarty 3 syntax highlighting thanks to Massimiliano Torromeo, check it out!

3.0.6 Released Dec 13, 2010

3.0.6 has been released. Mostly minor bug fixes, see the change log for details.

change log here.

download it here.

Smarty 3 Japanese docs now available! Dec 13, 2010

Masahiro Takagi has kindly contributed the Smarty 3 Japanese doc translation, you can find them on the Documentation page. Thanks Masahiro! Anyone else who would like to contribute translations just ask on the developer mailing list.

Showcase: Ipernity uses Smarty 3 Dec 8, 2010

Christophe from Ipernity says: is a service that helps people store and share photos, videos and much more with their friends and family. It's used by photographers, group of friends and families. And it's worldwide : ipernity is available in 13 languages, thanks to the possibilities and robustness of Smarty !

We've been using intensively Smarty for the last 3 years. The Smarty syntax influenced the way we develop our service, opening great opportunities in terms of features, robustness and... time savings!
More than just an html programming language, we use the Smarty features in the complex process of translating ipernity into 13 languages.

But we had to hack Smarty 2 a lot until Smarty 3 was out! Thank god you solved the { javascript inclusion } nightmare.

Moving to Smarty 3 is a bowl of fresh air for the team, bringing new strong features and making it possible to remove some old dirty hacks ;)

Some numbers:

- 650 templates
- 100+ smarty modifiers, functions, filters ...
- 200+ person translation team for 19 languages = 650 * 19 : 12,350 smarty html files!
- 2 front-end developers only ;)

Thank You Smarty!

Congrats Christophe!

Showcase: Webiny uses Smarty 3 Dec 8, 2010

Sven from Webiny says:

Webiny is a CMS / Booking System (and Webshop soon) that implements multi-client/domain/language organization (organisation). It has many modules, and many new modules are also coming in the first half of 2011. Webiny uses Smarty 3 since the first beta. The integrated template engine expands a lot of Smarty functions, which gives Webiny modules great possibilities to integrate within the users templates. Each page in Webiny has an assigned Smarty template, and each module can integrate into the smallest part of those templates, with a 'mini-template'. These kind of integration is called an 'action item'.

Action item give users the ability to display image galleries, related pages, polls..etc, anywhere on the page with a simple drag'n'drop action. Users can also, very easily, define multiple 'mini-templates' for modules, so they can have eg. 3 templates just for displaying a poll or image gallery. Than they can choose, for each page, which mini-template they want to use.

Webiny template engine registers several functions and resources into Smarty, so that this kind of parsing and displaying of content can be possible. Smarty here does most of the job, firsts it processes those 'mini-templates', and than it merges them with the main template. At first we thought that this process would slow down the system, but Smarty is really fast, and these kind of task was no problem at all.

Few more Webiny highlights:
- fully SEO optimized (we take really big care of SEO)
- really good memory optimization (we try not to use more than 7MB of ram for page load, Smarty included)
- we use Agile-Scum development process
- really cool caching mechanisms (uses some parts of Smarty cache class)
- very very easily expanded (over hooks and modules)
- backend is fully MVC based
- ... and lots more

Unfortunately, for now, we cannot show the system to the public.
I have prepared a few pages that give a more detailed insight of the system on my blog (powered by Webiny). I haven't had the time to proofread it, so I apologize if you encounter some irregularities.

About Webiny:

and little more info about Smarty integration

Thank You,

Sven Al Hamad

Congrats Sven!

Showcase: Abenity uses Smarty 3 Dec 7, 2010

Mark Roland from Abenity says: hosts and manages online discount programs for employers, associations and alumni groups. We have been online (and using Smarty templates) since 2006 and have over 200,000 registered members.

Our entire site uses Smarty for each of its applications: our admin sites, our secure store, our discount program and our mobile-formatted site. Each of these applications use different template directories, however some tap into a shared template directory. For example, almost every application uses the same template file that contains form HTML. This makes it very easy for us to share resources and expand while using what we have already developed.

Our online discount program was coded from the ground up so that different template "themes" can applied to re-style the content far beyond what CSS re-styling can afford. This has led to several thousands of dollars in customization revenue for our company that could not be as easily achieved with any other strategy.

We started using Smarty 3 on some new parts of our sites while the old parts were still using Smarty 2. The transition was fairly straightforward and by using symbolic links to template directories it was a snap to switch between Smarty 3 and Smarty 2. We have used this strategy to easily upgrade revisions of Smarty 3 without any downtime whatsoever.

Having developed with PHP and Smarty for years now I can't imagine going back to writing HTML directly into PHP files. Our discount program relies heavily on MySQL queries to build modules within our site based on our user's ZIP code and we are looking forward to integrating Smarty's ability to cache limited page sections so that the load on our database can be reduced.

Thank you Smarty!

- Mark

Congrats Mark!

Smarty 3 wrapper for Code Igniter Dec 1, 2010

Dwayne from has posted a very small Code Igniter library for implementing Smarty 3 templates in the Code Igniter framework. Check it out!

Showcase: Magix CMS uses Smarty 3 Nov 29, 2010

Gerit from Magix CMS says:

Magix CMS, Smarty 3 powered

Developed in PHP, Magix CMS is strongly influenced by the philosophy of Smarty. Presented at the show ForumPHP 2010 (AFUP), Magix CMS has the best score in comparison of CMS's by Magix CMS uses the library Magix CjQuery, Jquery, Jquery-UI and Smarty 3 for a multitude of features, they are the foundation of the great success of this open source project.

This object-oriented CMS has already been downloaded over 800 times in just a few weeks and feedback from users confirms that our choices are sound. All Widgets integrated in Magix CMS are developed with the help of Smarty by three new features that makes their achievements. Getting started coding using Smarty 3 remains easy and caching is becoming faster. Smarty version 3 allows greater freedom of movement and plays a predominant role in achieving any open source project.

Congrats Gerit!

3.0.5 Released Nov 20, 2010

3.0.5 has been released. More minor bug fixes, one important change:

Smarty now follows the PHP error_reporting level by default. If PHP does not mask E_NOTICE and you try to access an unset template variable, you will now get an E_NOTICE warning. To revert to the old behavior:

$smarty->error_reporting = E_ALL & ~E_NOTICE;

change log here.

download it here.

Template Engine: An Overview of Smarty Templates & Other Comparisons Nov 18, 2010

A great article on Smarty and other Template engines for PHP.

Template Engine: An Overview of Smarty Templates & Other Comparisons

Feel free to leave some comments!

<< newer posts | older posts >>