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

Adam Trachtenberg's Blog: PHP SOAP vs. SDO

Zend Developer Zone: Lifting the Skirt on Zend Framework 1.5 - Zend_Form

Sameer Borate's Blog: Refactoring 2: Extract Method

I-nfotech: 10 projects every php developer should use

Timothy Boronczyk's Blog: Anonymous Functions and Closures


Community Events

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


opinion conference interview application performance configure voicesoftheelephpant symfony2 framework introduction laravel library podcast api community release series php7 example part2

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