Smarty templates? 7 benefits of using the smarty template engine
Written by Joe on Thursday, February 11, 2010
The goal of the smarty template engine is to seperate your application code from your presentation code. In large applications this allows the developers to work on the application side, the php, and the designer to work on the presentation side, the html. Your php code would collect the data to be diplayed, usually from a mysql database, assign it to a template variable, and the template handles displaying the html.
Here are 7 benefits of using the smarty template engine.
- Changing the look and feel of your site is as simple as changing the templates and style sheet. Your application code can stay the same.
- Designers don't have to worry about editing templates. Since the application code passes data to the template, the designer can do what they need and not worry about the application code.
- Your application code is completely seperate from your presentation code. This makes your application code lighter and easier maintain.
- Since your application code is completely seperate from your presentation code, you can easily maintain the code without worrying messing up the design.
- Smartys error handling makes errors easy to understand and fix.
- Smarty has built in security to prevent presentation code from allowing a security breach.
- Caching. Smarty caches the output of your site which saves time on executing the code each time the page is viewed.
These are just a few of the benefits of using the smarty template engine. Check out smarty.net to learn more about the smarty template engine and to download the latest version.
Like what you’ve read?
Link back to us.
http://www.revolutionunlimited.com/news-and-articles/php/2010-02-11/smarty-templates-7-benefits-of-using-the-smarty-template-engine/
OR Join Our Mailing List
Want to drive more traffic to your website?Our results driven search engine optimization services will get you the results you want. Contact Us Today |
![]() |
News And Articles
Get A Free Quote
Looking For Something?
Is your website on page 10 of the search engines? We can help. Contact us for a search engine optimization quote today.
Testimonials
I'm liking how easy this is...I've never had a web site project go so smoothly. Thank you for that and I do look forward to a long... Read More »
Wow! The website looks Great! Thanks Joe. I'm very happy with Revolution Unlimited & I am going to recommend you to all of my friends !... Read More »
It is my pleasure to recommend Mr. Joe Brown whose native intelligence for web designing is great. Joe's dedication to the A... Read More »
We at The Ale House Tavern & Tap, based out of Sayreville, are very pleased with the work that PixelProgression and Revolution Unlimited put... Read More »
I had the great fortune of connecting with PixelProgression and Revolution Unlimited when I decided there was need for a new website. This website... Read More »
As a nonprofit organization, we needed the assistance of a website designer who was knowledgeable, affordable, easily accessible, patient and,... Read More »
Pennsylvania Dutch Design would like to commend Jason of Pixel Progression and Joe of Revolution Unlimited. With their extensive knowledge... Read More »






Post A Comment