<?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>Sun, 06 Jul 2008 17:05:03 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[ProDevTips Blog: Nice ZF, jQuery and Smarty combo]]></title>
      <guid>http://www.phpdeveloper.org/news/10439</guid>
      <link>http://www.phpdeveloper.org/news/10439</link>
      <description><![CDATA[<p>
On the ProDevTips blog, there's a <a href="http://www.prodevtips.com/2008/06/19/nice-zf-jquery-and-smarty-combo/">quick post</a> with an example of a Zend Framework/jQuery and Smarty combination he came across while working up a CMS system:
</p>
<blockquote>
The result is an interface where an administrator can settle money transfers. It will start with displaying a list of all requested transfers, when the administrator has manually finished transferring cash to each recipient's account he can use this interface to update the database.
</blockquote>
<p>
He briefly explains the code, a combination of a jQuery function run on page load, a Smarty template for each transfer's information and the backend code through the Zend Framework to handle the requests issued from the button click.
</p>]]></description>
      <pubDate>Thu, 19 Jun 2008 09:33:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jordi Boggiano's Blog: Who let the Dwoo out ?]]></title>
      <guid>http://www.phpdeveloper.org/news/10194</guid>
      <link>http://www.phpdeveloper.org/news/10194</link>
      <description><![CDATA[<p>
<i>Jordi Boggiano</i> has <a href="http://seld.be/notes/who-let-the-dwoo-out">blogged about</a> a new PHP5 templating engine called <a href="http://dwoo.org/">Dwoo</a> that's just been released <a href="http://dwoo.org/download">for download</a>.
</p>
<blockquote>
Early this year I wanted to rebuild my template engine to have something stronger to work with, so I started thinking about it and then asked myself why I didn't use one of the available engines out there. The fact is that - and I guess I will lose many of my few readers here - I am not fond of using php itself as a template engine (with Savant or similar).
</blockquote>
<p>
Features of <a href="http://dwoo.org/">the templating engine</a> include a striking similarity to Smarty's methods, the fact that its code is scope aware, it has template inheritance and comes with a plugin system that can be extended as you see fit.
</p>
<p>
You can get complete information about the engine from <a href="http://dwoo.org/">the Dwoo homepage</a>.
</p>]]></description>
      <pubDate>Thu, 15 May 2008 12:58:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPEveryDay.com: New Smarty Tutorials]]></title>
      <guid>http://www.phpdeveloper.org/news/10107</guid>
      <link>http://www.phpdeveloper.org/news/10107</link>
      <description><![CDATA[<p>
The PHPEveryDay.com website has posted more tutorials recently - this time about working with Smarty.
</p>
<ul>
<li><a href="http://www.phpeveryday.com/articles/Smarty-Template-Introduction-P607.html">Smarty Template: Introduction</a>
<li><a href="http://www.phpeveryday.com/articles/Smarty-Template-Installation-P608.html">Smarty Template: Installation</a>
<li><a href="http://www.phpeveryday.com/articles/Smarty-Template-My-First-Smarty-P609.html">Smarty Template: My First Smarty</a>
<li><a href="http://www.phpeveryday.com/articles/Smarty-Template-Basics-That-You-Must-Know-P610.html">Smarty Template: Basics That You Must Know</a>
<li><a href="http://www.phpeveryday.com/articles/Smarty-Variable-Associative-Arrays-P611.html">Smarty Variable: Associative Arrays</a>
<li><a href="http://www.phpeveryday.com/articles/Smarty-Variable-Array-Index-P612.html">Smarty Variable: Array Index</a>
<li><a href="http://www.phpeveryday.com/articles/Smarty-Variable-Object-P613.html">Smarty Variable: Object</a>
<li><a href="http://www.phpeveryday.com/articles/Smarty-Variable-Variable-at-Configuration-File-P614.html">Smarty Variable: Variable at Configuration File</a>
<li><a href="http://www.phpeveryday.com/articles/Smarty-Variable-Reversed-Variable-P615.html">Smarty Variable: Reversed Variable</a>
</ul>
<p>
Check out <a href="http://www.phpeveryday.com">PHPEveryDay.com</a> for more great PHP articles and tutorials.
</p>]]></description>
      <pubDate>Mon, 05 May 2008 08:47:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[phpRiot.com: Using the PHP 5 Iterator interface with Smarty]]></title>
      <guid>http://www.phpdeveloper.org/news/9765</guid>
      <link>http://www.phpdeveloper.org/news/9765</link>
      <description><![CDATA[<p>
On the phpRiot blog, <i>Quentin Zervaas</i> has <a href="http://www.phpriot.com/blog/php5-iterator-interface-with-smarty">posted a quick tutorial</a> about using the Iterator interface (part of the Standard PHP Library) together with Smarty to loop through some objects:
</p>
<blockquote>
The PHP 5 Iterator interface is very useful for defining custom behaviour for looping over objects, however I just noticed that looping over such objects in Smarty will not work correctly. Smarty will in fact cast an object back to an array.
</blockquote>
<p>
He includes code examples of his problem to illustrate and shows how he got around the problem - a getData() function he defined that just returns the array from the object.
</p>]]></description>
      <pubDate>Mon, 10 Mar 2008 09:35:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: The HYSOCAMTT templating approach]]></title>
      <guid>http://www.phpdeveloper.org/news/9707</guid>
      <link>http://www.phpdeveloper.org/news/9707</link>
      <description><![CDATA[<p>
In a new post to the Zend Developer Zone, <i>Brett Zamir</i> has <a href="http://devzone.zend.com/article/2814-The-HYSOCAMTT-templating-approach">posted a new tutorial</a> that talks about using the Smarty templating system to create what he calls the HYSOCAMTT templating approach ("Have-Your-Separation-Of-Concerns-And-Mix-Them-Too".
</p>
<blockquote>
This article aims to highlight a approach which allows one to separate everything from one's business logic to one's design logic, to XHTML from CSS, one's Javascript from the page structure, etc., while at the same time being able to be lazy and include, for example, CSS information within the same document (template) as one's XHTML
</blockquote>
<p>
The tutorial uses an extension for Smarty called <a href="http://sourceforge.net/projects/smartydocb">SmartyDocB</a> that makes the documentation side much easier. He works through the templating process and includes some of the code for the .tpl files to get you started.
</p>
<p>
He also includes some future goals for his idea, a mention of XSL templating, XQuery and the potential for templating across programming languages to make your site even more flexible.
</p>]]></description>
      <pubDate>Wed, 27 Feb 2008 07:56:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Scott Klarr's Blog: PHP Cheat Sheets]]></title>
      <guid>http://www.phpdeveloper.org/news/9594</guid>
      <link>http://www.phpdeveloper.org/news/9594</link>
      <description><![CDATA[<p>
<i>Scott Klarr</i> has <a href="http://www.scottklarr.com/topic/100/php-cheat-sheets/">pulled together</a> a listing of the top cheat sheets that he's found out there relating to PHP (and things surrounding it) like:
</p>
<ul>
<li><a href="http://www.blueshoes.org/en/developer/php_cheat_sheet">this one</a> from blueshoes.org
<li>a sheet covering <a href="http://www.pixelated-dreams.com/uploads/misc/cheatsheets/FilteringAndEscapingCheatSheet.pdf">filtering and escaping</a>
<li>a <a href="http://www.phpxperts.net/SmartyCheatSheet.pdf">Smarty cheat sheet</a>
<li>a few <a href="http://wpcandy.com/the-wordpress-help-sheet/">covering</a> <a href="http://bueltge.de/wp-content/download/wp/WP_Plugin_API.pdf">WordPress</a>
<li>and ones covering <a href="http://cakephp.org/files/cakesheet.pdf">CakePHP</a> and <a href="http://drupal.org/files/drupal_core_hooks_cheat_sheet_v5.pdf">Drupal</a>
</ul>
<p>
Check out <a href="http://www.scottklarr.com/topic/100/php-cheat-sheets/">his page</a> for more (and thumbnails for each).
</p>]]></description>
      <pubDate>Fri, 08 Feb 2008 14:37:49 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPRiot.com: Creating Custom Block Tags in Smarty]]></title>
      <guid>http://www.phpdeveloper.org/news/9556</guid>
      <link>http://www.phpdeveloper.org/news/9556</link>
      <description><![CDATA[<p>
On the {H{Riot.com site today, there's <a href="http://www.phpriot.com/articles/smarty-blocks">a new tutorial</a> talking about how to customize your site's Smarty templates a bit more using external plug-ins, specifically one for making those "code block" sections seen all over the web.
</p>
<blockquote>
We will first learn how block plug-ins can be used in your templates, and then learn how to create our own. Once we know how to create a block plug-in, we will cover a practical example that will show you how block plug-ins can effectively be used in your own web sites.
</blockquote>
<p>
<a href="http://www.phpriot.com/articles/smarty-blocks">The tutorial</a> assumes that you already have Smarty installed and that you're familiar enough with it to know how to work with the plug-in system right away. They include some samples of how it can be used (a default block, formatting it with HTML) and, of course, how to integrate this (PHP code and all) into your template and push your content into it.
</p>]]></description>
      <pubDate>Mon, 04 Feb 2008 07:56:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP in Action Blog: Testing Smarty templates]]></title>
      <guid>http://www.phpdeveloper.org/news/9513</guid>
      <link>http://www.phpdeveloper.org/news/9513</link>
      <description><![CDATA[<p>
On the PHP in Action blog today, there's a <a href="http://www.reiersol.com/blog/index.php?op=ViewArticle&articleId=29&blogId=1">quick new post</a> that talks about not only using the <a href="http://smarty.php.net">Smarty templating system</a> but also a method for testing it to check for any kind of possible failure.
</p>
<blockquote>
As I mentioned in my blog post on <a href="http://www.reiersol.com/blog/index.php?op=ViewArticle&articleId=25&blogId=1">Paparrazzi testing</a>, Uncle Bob (Robert C. Martin) has discussed how to test web templates or server pages. Since I'm currently working with Smarty templates, I wanted a simple way to run tests on them without needing to deal with a web server and the page navigation in a full web application.
</blockquote>
<p>
Thankfully, he's found a nice, simple method for running tests against the Smarty engine (and includes that in <a href="http://www.reiersol.com/blog/index.php?op=ViewArticle&articleId=29&blogId=1">the post</a> - an interface to Smarty and the example test case to run against it).
</p>]]></description>
      <pubDate>Tue, 29 Jan 2008 08:47:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ProDevTips.com: Writing a CMS/Community with Smarty and the Zend Framework: Part 9]]></title>
      <guid>http://www.phpdeveloper.org/news/9467</guid>
      <link>http://www.phpdeveloper.org/news/9467</link>
      <description><![CDATA[<p>
ProDevTips.com has posted <a href="http://www.prodevtips.com/2008/01/22/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-9/">part nine</a> of their long-running series about using the Zend Framework (and Smarty) to create a CMS/Community website.
</p>
<blockquote>
This piece covers creating a proper folder structure so that we can have a skin system. I've also created a folder for the admin section which is fully contained with it's own controllers folder and so on. Another unrelated change that has happened since the last part is sub menu logic which we will also take a look at.
</blockquote>
<p>
They make updates to the bootstrap file to introduce another controller directory and, inside of that, create the Administrator controller and integrate it with a Smarty template to show different menu items if an admin user is logged in.
</p>]]></description>
      <pubDate>Tue, 22 Jan 2008 10:24:00 -0600</pubDate>
    </item>
    <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>
  </channel>
</rss>
