News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

YoungCoders.com:
Debunking the Bloated Smarty Myth
October 11, 2006 @ 11:16:00

As mentioned in this new post on the Zend Developer Zone, there's a forum posting over on the YoungCoders.com website that looks to dispell the "age old" myth about Smarty - it's suposed bloated nature.

There has been a lot of talk about how Smarty, a popular template engine for PHP, is bloated and not useful because PHP is already a templating engine and that you're essentially creating a template engine out of a template engine. As everything I read could just say that it was bloated without backing up their statement, I decided to investigate it myself.

He describes what Smarty is and how to can help you and your site with compiled templates. There's a brief look at the syntax it uses and how it can help make the output of the site simpler than invoking PHP each time. He also gets a bit more indepth on the templating system, showing the process it uses to check the template and update if it needs to.

His conclusion? Smarty isn't that much different than any other kind of simple PHP-based templating language out there. So, what about the slowness? Well, he recommends checking your compiling setting - that's where the overhead is when the pages are loading.

0 comments voice your opinion now!
smarty myth dekunk bloated example template compile smarty myth dekunk bloated example template compile


blog comments powered by Disqus

Similar Posts

John Coggeshall's Blog: Compiling extensions for Zend Core

Michael Kimsal's Blog: ActiveFormat idea for templating?

Wez Furlong's Blog: parser and lexer generators for PHP

DevShed: Understanding Destructors in PHP 5

SitePoint PHP Blog: The Joy of Regular Expressions [4]


Community Events





Don't see your event here?
Let us know!


testing code threedevsandamaybe introduction refactor configure language interview release podcast series community wordpress list unittest laravel framework install opinion developer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework