<?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, 16 May 2008 00:17:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[SaniSoft Blog: Multiple validation rules per model field while baking]]></title>
      <guid>http://www.phpdeveloper.org/news/10070</guid>
      <link>http://www.phpdeveloper.org/news/10070</link>
      <description><![CDATA[<p>
If you're a CakePHP user and have been frustrated by how this "bake" functionality doesn't allow for more than one validation rule on a given field, check out <a href="http://www.sanisoft.com/blog/2008/04/29/multiple-validation-rules-per-model-field-while-baking/">the new post</a> on the SaniSoft blog (from <i>Amit Badkas</i>):
</p>
<blockquote>
This is not much of a problem if you have only a few models but when you start to work on several dozen models in a project it becomes very tedious to open each and every model file to make changes.
</blockquote>
<p>
The result of his frustration has come out in the form of a <a href="https://trac.cakephp.org/attachment/ticket/3959/model.php.patch.txt">patch</a> as a part of a new ticket in the CakePHP request submission process.
</p>]]></description>
      <pubDate>Tue, 29 Apr 2008 16:12:44 -0500</pubDate>
    </item>
    <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[Greg Szorc's Blog: Using DTD's and Catalogs for XHTML Validation]]></title>
      <guid>http://www.phpdeveloper.org/news/9949</guid>
      <link>http://www.phpdeveloper.org/news/9949</link>
      <description><![CDATA[<p>
<i>Greg Szorc</i> shows how, in <a href="http://blog.case.edu/gps10/2008/04/06/using_dtds_and_catalogs_for_xhtml_validation">this entry</a> on his blog, to use DTDs and catalogs to validate your XHTML pages with a little help from PHP.
</p>
<blockquote>
This [validation from an external site like the W3C validator] approach is a good start, but it is far from ideal because it is based on an honor system of sorts. You often forget to validate each change you make and there is always some corner case that you forget. So, what can be done about it? Well, if you find yourself developing in PHP, you can employ the following solution.
</blockquote>
<p>
The code <a href="http://blog.case.edu/gps10/2008/04/06/using_dtds_and_catalogs_for_xhtml_validation">he includes</a> pulls in the XHTML content from your page (or the output of the framework's view layer) and pushes it into a DOMDocument that's build with the LIBXML_DTDLOAD and LIBXML_DTDATTR options.
</p>]]></description>
      <pubDate>Thu, 10 Apr 2008 11:29:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Simple User Registration in CakePHP 1.2, Part II]]></title>
      <guid>http://www.phpdeveloper.org/news/9474</guid>
      <link>http://www.phpdeveloper.org/news/9474</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i> has followed up on a <a href="http://www.phpdeveloper.org/news/9394">previous post</a> about user authentication in CakePHP with <a href="http://www.littlehart.net/atthekeyboard/2008/01/22/simple-user-registration-in-cakephp-12-part-ii/">a few more comments</a> in part two.
</p>
<blockquote>
I got a question in the comments about my previous post on simple user registration about how to do some of the necessary validation for registration in the model. I thought I'd show some code I did to do exactly that.
</blockquote>
<p>
He includes <a href="http://www.littlehart.net/atthekeyboard/2008/01/22/simple-user-registration-in-cakephp-12-part-ii/">the code</a> for his example with the key, he explains, being the use of a second field (the confirm password field) to do the validation.
</p>]]></description>
      <pubDate>Wed, 23 Jan 2008 09:36:00 -0600</pubDate>
    </item>
  </channel>
</rss>
