<?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 02:56:34 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPBuilder.com: PHP Form Validation System: An Object-Oriented Approach]]></title>
      <guid>http://www.phpdeveloper.org/news/10005</guid>
      <link>http://www.phpdeveloper.org/news/10005</link>
      <description><![CDATA[<p>
<i>Mike Weiner</i> has put together <a href="http://www.phpbuilder.com/columns/weiner20050831.php3">an article</a> for PHPBuilder.com that's posted today showing a bit more object-oriented solution to validating the user submitted data in your forms:
</p>
<blockquote>
Whether it is for database submission, emailing, or for some other purpose, forms represent the primary means of enabling a user to send data to an application. As a result, it is important to have control over the data collected by your forms, which will aid in the creation of streamlined, error-free applications.
</blockquote>
<p>
He lays out the validation method in a graphic going with a generic validation class that then calls the various validation methods (like phone or email) as needed. The "validation set" manages which validations are to be run on which form elements. Example code for each of the bits making up the structure and the implementation are provided.
</p>]]></description>
      <pubDate>Mon, 21 Apr 2008 08:49:24 -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>
  </channel>
</rss>
