<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 09 Jan 2009 06:51:36 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Community News: Has Smarty's Time Come?]]></title>
      <guid>http://www.phpdeveloper.org/news/9407</guid>
      <link>http://www.phpdeveloper.org/news/9407</link>
      <description><![CDATA[<p>
As <i>Paul Jones</i> <a href="http://paul-m-jones.com/?p=273">mentions</a>, there's a sort of force in the PHP community that seems to be pushing back at the <a href="http://smarty.php.net">Smarty templating system</a> and calling it unnecessary. 
</p>
<p>
He points out <a href="http://hasin.wordpress.com/2008/01/05/once-upon-a-time-there-was-smarty/">Hasin Hayder's post</a> on the subject. <i>Hasin</i> (ironically author of a Smarty book) has recently come to the conclusion that there "is no need to use an external template engine like smarty".
</p>
<blockquote>
Some nice guys over there developed smarty and it saved life of a lot of developers (i mean developers). But that time is over. Seriously why the hell I need to learn a new templating language when a "echo" does the thing much better.
</blockquote>
<p>
Judging by the responses to both <a href="http://hasin.wordpress.com/2008/01/05/once-upon-a-time-there-was-smarty/">Hasin's post</a> and <a href="http://paul-m-jones.com/?p=273">Paul's post</a> it seems like quite a bit of the PHP community agrees (including <a href="http://fosterburgess.com/kimsal/?p=406">Michael Kimsal</a>, <a href="http://www.phppatterns.com/index.php/article/articleview/4/1/1/">Harry Fuecks</a> and <a href="http://www.massassi.com/php/articles/template_engines/">Brian Lozier</a>). 
</p>]]></description>
      <pubDate>Fri, 11 Jan 2008 12:53:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Peck's Blog: PHP Templating Celebrity Deathmatch!]]></title>
      <guid>http://www.phpdeveloper.org/news/8453</guid>
      <link>http://www.phpdeveloper.org/news/8453</link>
      <description><![CDATA[<p>
The Code Lemur blog (as penned by <i>Rob Peck</i>) has a <a href="http://codelemur.wordpress.com/2007/08/10/php-templating-celebrity-deathmatch/">new post</a> - a "deathmatch" for two of the PHP-associated templating solutions out there in a fight to the finish - <a href="http://smarty.php.net">Smarty</a> and <a href="http://alexeyrybak.com/blitz/blitz_en.html">Blitz</a>.
</p>
<blockquote>
In this test, I am going to be comparing Smarty (the most widely used PHP templating engine and an official PHP project), Blitz (a new templating engine currently under very active development that is native compiled as a PHP extension), and standard PHP includes.
</blockquote>
<p>
He <a href="http://codelemur.wordpress.com/2007/08/10/php-templating-celebrity-deathmatch/">compares them</a> on three different levels - instantiation, simple template rendering, and complex testing. Each time, there's a victor but in the end, there's really only one "winner" - the PHP language itself that does a great job of templating things easily without the overhead of adding in external libraries.
</p>]]></description>
      <pubDate>Tue, 14 Aug 2007 15:37:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Smarty Templating System]]></title>
      <guid>http://www.phpdeveloper.org/news/7627</guid>
      <link>http://www.phpdeveloper.org/news/7627</link>
      <description><![CDATA[<p>
PHPBuilder.com has a <a href="http://www.phpbuilder.com/columns/ben_robinson20070413.php3">new article</a> today that takes a look at one of the most popular PHP-based templating systems on the web today - <a href="http://smarty.php.net/">Smarty</a>.
</p>
<blockquote>
The Smarty templating system is a fantastic framework for architecting php-based websites, especially in a collaborative development environment. This article will examine the benefits of Smarty, as well as delve into some basic examples of its implementation. We will also point the way to the available resources and community based around the system.
</blockquote>
<p>
The article is broken up:
<ul>
<li>Why smarty? (making a case - 6 reasons)
<li>Setting it up
<li>Some sample code
<li>and a sample template
</ul>
Simplicity like that is one of the reasons this templating system is so popular. Of course, <a href="http://www.phpbuilder.com/columns/ben_robinson20070413.php3">this is just the tip of the iceberg</a> - there's so much more that it has to offer. Check out <a href="http://smarty.php.net">smaty.php.net</a>.
</p>]]></description>
      <pubDate>Mon, 16 Apr 2007 08:44:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Felix Geisendorfer's Blog: Basic CakePHP templating skills]]></title>
      <guid>http://www.phpdeveloper.org/news/6486</guid>
      <link>http://www.phpdeveloper.org/news/6486</link>
      <description><![CDATA[<p>
From the ThinkingPHP blog today, <i>Felix Geisendorfer</i> <a href="http://www.thinkingphp.org/2006/10/11/basic-cakephp-templating-skills/">has shared</a> some of his experience to help those CakePHP users out there that are looking at doing more templating to their applications than just the normal index changes.
</p>
<blockquote>
One of the things I don't see getting to much coverage is how to create good templates when working with CakePHP. Since those are written in plain PHP, this does not apply to CakePHP only. So I'm sure many people have already developed their own style that they are comfortable with and I don't ask for them to change it. However, maybe some people new to the framework / language can benifit by taking a look at the one I'm using.
</blockquote>
<p>
He <a href="http://www.thinkingphp.org/2006/10/11/basic-cakephp-templating-skills/">covers</a> a few different topics: 
<ul>PHP tags
<li>Conditions
<li>Loops
<li>the linebreak issue
<li>avoiding multi-line statements
<li>Creating Zebra striped table rows
</ul>
The code included on some of the points (not the multi-line or the PHP tags items) is simple and is summed up in less than six lines.
</p>]]></description>
      <pubDate>Thu, 12 Oct 2006 07:44:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[P&aacute;draic Brady's Blog: Template Lite: A Sweeter Smarty Alternative]]></title>
      <guid>http://www.phpdeveloper.org/news/6318</guid>
      <link>http://www.phpdeveloper.org/news/6318</link>
      <description><![CDATA[<p>
In his <a href="http://blog.quantum-star.com/index.php?/archives/232-Template-Lite-A-Sweeter-Smarty-Alternative.html">latest blog post</a>, <i>P&aacute;draic Brady</i> talks about a "sweeter alternative" to using Smarty for your site's templating - <a href="http://templatelite.sourceforge.net/">Template Lite</a>.
</p>
<blockquote>
<p>
Use the term Template Engine in a PHP forum and the word "Smarty" will inevitably crop up. I like Smarty but, similar to a few PHP libraries, it's very bloated.
</p>
<p>
I try to keep my applications lean and mean - small, fast, and adaptable. Unfortunately, Smarty disagrees with my needs. It's bloated design while packing a mighty punch, uses a chunk of memory and processor time I dislike. Since I also develop open source apps which end up on shared hosts, my concerns are even more justified.
</p>
<p>
Enter Mark Dickenson. Mark is the developer of a <a href="http://smarty.php.net">Smarty</a> alternative: <a href="http://templatelite.sourceforge.net/">Template Lite</a>.
</p>
</blockquote>
<p>
He <a href="http://blog.quantum-star.com/index.php?/archives/232-Template-Lite-A-Sweeter-Smarty-Alternative.html">talks about</a> what Template Lite is and what kinds of advantages it has over Smarty, including staying try to its name. <i>P&aacute;draic</i> measures it as not only being faster but also having 50% of the memoery footprint that Smarty does. He seems to favor it for those places when he just needs something light and easy on a site.
</p>]]></description>
      <pubDate>Wed, 20 Sep 2006 15:53:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Khalid Hanif's Blog: Problems with Simple Testing]]></title>
      <guid>http://www.phpdeveloper.org/news/5263</guid>
      <link>http://www.phpdeveloper.org/news/5263</link>
      <description><![CDATA[<p>
The "Jelly & Custard" blog has <a href="http://www.jellyandcustard.com/2006/04/21/problems-with-simple-templating/">a good reminder</a> today for both those experienced with templating in PHP and those just starting out - be careful how you include.
</p>
<quote>
<i>
<p>
Its quite common for people to have one main template, and 'include' their content into the main content area. This works well for small informational sites, where the main content is the bit that changes on each page.
</p>
<p>
There's nothing wrong with this as such, however, the issue is when the input isn't validated.
</p>
</i>
</quote>
<p>
He gives one or two <a href="http://www.jellyandcustard.com/2006/04/21/problems-with-simple-templating/">examples</a> of how it's usually implemented, how it can be exploited, and two ways to help combat the problem - a php.ini setting and some simple input validation.
</p>]]></description>
      <pubDate>Sat, 29 Apr 2006 07:48:16 -0500</pubDate>
    </item>
  </channel>
</rss>
