This post originated from an RSS feed registered with Web Buzz
by Douglas Clifton.
Original Post: PHP Templating Engines
Feed Title: blogZero
Feed URL: http://loadaveragezero.com/app/s9y/index.php?/feeds/index.rss1
Feed Description: Web Development News, Culture and Opinion
Somehow, I managed to miss Harry'sTemplates and Template Engines on phpPatterns. While it may have been written a few years back, I believe the points he makes are just as valid today as they were then.
I have nothing against templating engines like Smarty (which we use at Digital Web). What I really don't understand is why there is a need to add yet another layer of complexity on top of PHP when PHP is already a language designed for combining markup and logic. The standard argument is we should separate the programming logic of our Web applications from the markup. Much like we should separate markup from presentation using CSS. And I'm all for that. Search for modular php markup on Google and see what you find.
Have you ever studied one of these templates? Let's have a look at an example.