<?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>Sat, 18 May 2013 11:56:20 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Symfony Blog: Static Page Caching & Payment Validators in Symfony 2.2]]></title>
      <guid>http://www.phpdeveloper.org/news/18880</guid>
      <link>http://www.phpdeveloper.org/news/18880</link>
      <description><![CDATA[<p>
On the Symfony blog, there's two new posts highlighting some recent improvements to the Symfony2 framework - the addition of static page caching and payment validators:
</p>
<ul>
<li><a href="http://symfony.com/blog/new-in-symfony-2-2-cache-support-for-static-pages">Static page caching</a> support in the routing configuration
<li><a href="http://symfony.com/blog/new-in-symfony-2-2-payment-related-validators">Payment validators</a> with docblock assertions, including error messages for failures.
</ul>
<p>
These features are all a part of the upcoming Symfony 2.2 release that's <a href="http://symfony.com/blog/symfony-2-2-release-schedule">planned</a> to be moved in the "stabilization" status in early 2013. It should be able two months following that when the stable version will be released.
</p>]]></description>
      <pubDate>Wed, 12 Dec 2012 11:46:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[MaltBlue.com: Zend Form Mastery with Zend Config - Part 4 Configuring Zend Validators]]></title>
      <guid>http://www.phpdeveloper.org/news/18050</guid>
      <link>http://www.phpdeveloper.org/news/18050</link>
      <description><![CDATA[<p>
On the MaltBlue blog <i>Matt</i> has posted the latest part of the "Zend_Form with Zend_Config" series, <a href="http://www.maltblue.com/zend-framework/zend-form-mastery-with-zend-config-part-4-configuring-zend-validators">part four</a> looking at using and configuring some form validators.
</p>
<blockquote>
Welcome to the fourth and final part in the Zend Form Mastery with Zend Config series. Previously we looked at the basic form options, element and form wide prefixes, filters and element options. In this installment, we're going to look at configuring Zend Validators via our XML config. [...] To go in to all of them will take more time than is allowed in the confines of this article. So we're going to work through 5 of the more interesting and likely used ones.
</blockquote>
<p>
He covers the validation for: email addresses, postal codes, seeing if a record exists in the database, IBAN validation and checking to see if a value is in an array. He gives XML examples for each of these validation methods including the definitions of options and error/feedback messages. 
</p>]]></description>
      <pubDate>Tue, 05 Jun 2012 11:25:45 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Henrik Bj&oslash;rnskov's Blog: Symfony2: Using the validator symfony1 style]]></title>
      <guid>http://www.phpdeveloper.org/news/17495</guid>
      <link>http://www.phpdeveloper.org/news/17495</link>
      <description><![CDATA[<p>
In <a href="http://henrik.bjrnskov.dk/symfony2-using-the-validator-symfony1-style/">this quick new post</a> to his blog <i>Henrik Bj&oslash;rnskov</i> shows how to use the validators in <a href="http://symfony.com">Symfony2</a> in a more traditional Symfony 1 style for a form.
</p>
<blockquote>
Two of the more complicated components in Symfony2 is the Form and Validator component. The Validator is created in such a way it "always" need an Domain Object with Constraints associated through metadata. This is <a href="http://symfony.com/doc/2.0/book/validation.html">explained in detail here</a>. But there is another way. A way that resemble's the symfony1 forms. Where you could specify the validations directly in your form class.
</blockquote>
<p>
Code is included in the post to show how to load in a few of the validators (like NotBlank, Email and Choice) and how to use them in the settings defined in the "getDefaultOptions" method. 
</p>]]></description>
      <pubDate>Fri, 03 Feb 2012 11:15:01 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Building Concrete Validators]]></title>
      <guid>http://www.phpdeveloper.org/news/17293</guid>
      <link>http://www.phpdeveloper.org/news/17293</link>
      <description><![CDATA[<p>
On DevShed.com today there's the first part of a two-part series showing how to <a href="http://www.devshed.com/c/a/PHP/PHP-Building-Concrete-Validators/">build self-contained validator objects</a> that can be used to test the format of user input for validity.
</p>
<blockquote>
In this two-part tutorial, I show why the use of static helper classes can be detrimental to building robust and scalable object-oriented applications in PHP (though you should take into account that the concept is language agnostic). I also implement a set of instantiable, fine-grained validators, which can be easily tested in isolation, injected into the internals of other objects, and so forth.
</blockquote>
<p>
Their set of "concrete validators" are all based off of a validator interface/abstract class and check things like email formatting, floats, integers and URLs. Also included are a few examples of using the validators in a sample script.
</p>]]></description>
      <pubDate>Thu, 22 Dec 2011 11:24:25 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Simas Toleikis's Blog: Idea for a PHP Validator]]></title>
      <guid>http://www.phpdeveloper.org/news/15254</guid>
      <link>http://www.phpdeveloper.org/news/15254</link>
      <description><![CDATA[<p>
<i>Simas Toleikis</i> has posted <a href="http://simas.posterous.com/idea-for-a-php-validator">an interesting idea for a validator</a> that would look at the incoming source of an application/script and determine what the requirements for it might be.
</p>
<blockquote>
How about creating a PHP code validator? Got this idea by looking at <a href="http://php.net/tokenizer">tokenizer</a> and <a href="http://php.net/reflection">reflection</a> extensions. I doubt I will find the time to work on this myself but then someone else might be interested to pick it up. From user's point of view there will be a form made of a large textarea box and a single file upload input. One could paste code snippet on that textarea or upload a ZIP'ed source code archive (or a single .php file) for validation.
</blockquote>
<p>
His proposed result would show a list of "Required Extensions", PHP versions, E_STRICT compatibility and possibly total lines of code in the project. He points out a few issues that might pop up in writing such a tool such as the requirement for it to be able to use the tokenizer extension itself (a sort of catch-22 since it's not always installed).
</p>]]></description>
      <pubDate>Fri, 08 Oct 2010 13:48:26 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Validating Zend_Forms using model objects]]></title>
      <guid>http://www.phpdeveloper.org/news/12482</guid>
      <link>http://www.phpdeveloper.org/news/12482</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> has <a href="http://codeutopia.net/blog/2009/05/07/validating-zend_forms-using-model-objects/">posted a three-step process</a> to his blog about handling the information submitted into a Zend_Form instance with a model.
</p>
<blockquote>
Zend_Forms, models, validation and how they all work together is a tricky topic. There are many opinions and many ways to do it. This time I'll show you what I think could be the answer to validating forms without having to duplicate validation code both in a model class and in your form.
</blockquote>
<p>
He creates a simple model interface (with get, set, isValid and getMessages methods) and a validator extended from Zend_Validate_Abstract to pass the information back into the model through an isValid method call. The validator is then added to each element you want to use it on in the addElement call on the Zend_Form object.
</p>]]></description>
      <pubDate>Fri, 08 May 2009 10:27:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Symfony Blog: Call the expert: How to implement a conditional validator?]]></title>
      <guid>http://www.phpdeveloper.org/news/10973</guid>
      <link>http://www.phpdeveloper.org/news/10973</link>
      <description><![CDATA[<p>
On the symfony blog today, there's a <a href="http://www.symfony-project.org/blog/2008/09/05/call-the-expert-how-to-implement-a-conditional-validator">new post</a> that looks at creating a conditional validator in the context of a classic login form for the framework.
</p>
<blockquote>
Jon works on a symfony 1.1 project with a classic login form. The form is composed of two fields: a username and a password. The validation rules are quite straightforward: he wants each field to be required and he wants to check the correctness of the password.
</blockquote>
<p>
They show how to set up a normal login widget and how to apply a sfValidatorCallback in the configure() method to check the values in the form. This method checks the username and password values and tosses an error with sfValidatorError if a problem is found.
</p>]]></description>
      <pubDate>Fri, 05 Sep 2008 12:06:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Thomas Weidner's Blog: Zend_File_Transfer examples or using validators to increase security]]></title>
      <guid>http://www.phpdeveloper.org/news/10678</guid>
      <link>http://www.phpdeveloper.org/news/10678</link>
      <description><![CDATA[<p>
<i>Thomas Weidner</i> has <a href="http://www.thomasweidner.com/flatpress/2008/07/20/zend_file_transfer-examples-or-using-validators-to-increase-security">posted about</a> a method he's come up with to help protect you and your site when uploading files through the Zend_File_Transfer component from the Zend Framework.
</p>
<blockquote>
The new Zend_File_Transfer component is growing day for day.
As incredible new feature this component allows to use file validators. These are necessary to increase security and allow to define rules for file uploads (and also downloads in future).
</blockquote>
<p>
He illustrates with a simple Zend_File_Transfer object that uses an addValidators call to limit the size of the upload to 50 KB. Other validation rules include count (the number of files to expect), extension, filessize and imagesize. Using these he makes a "more secure" upload object setting the size to 205KB, to expect five files that are all under 1MB and are of the types gif/jpg/png.
</p>]]></description>
      <pubDate>Thu, 24 Jul 2008 13:41:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Symfony-framework.com: Symfony 1.1 - What's new?]]></title>
      <guid>http://www.phpdeveloper.org/news/9135</guid>
      <link>http://www.phpdeveloper.org/news/9135</link>
      <description><![CDATA[<p>
On the Symfony-framework.com website, there's <a href="http://www.symfony-framework.com/2007/11/23/symfony-11-whats-new/">a look at</a> what's new in the latest Symfony build, version 1.1, as presented by <a href="http://www.aide-de-camp.org/">Fabien Potencier</a> at this year's International PHP Conference 2007.
</p>
<blockquote>
In this article, I will briefly explain all the significant changes of Symfony 1.1 so that you will have fewer doubts deciding between: rewrite part of your old code, simply update your application or use the new Symfony 1.1 only in new developments.
</blockquote>
<p>
There's three things he mentions - the new task framework to help organize code development, the reorganization of the event dispatcher and its dependencies, and the new Form, Widget and Validator framework.
</p>]]></description>
      <pubDate>Wed, 28 Nov 2007 12:07:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Scott Johnson's Blog: Your Simple PHP Code Snippet for Monday]]></title>
      <guid>http://www.phpdeveloper.org/news/5332</guid>
      <link>http://www.phpdeveloper.org/news/5332</link>
      <description><![CDATA[<p>
Trying to find the HTML errors in a complex layout on a page can get very frustrating (especially when it repeats elements generated by backend scripts). <i>Scott Johnson</i> had one such instance, so he wrote a little script to help with it.
</p>
<quote>
<i>
<p>
I wasn't planning on blogging much today (or, honestly, this week) since we're making good progress on Ookles but our designer just had to deal with the situation where one of our developers clobbered our page footer w/ a comment gone astray and she wasted quite a bit of time analyzing the problem. Which, naturally, turned out to be nothing more than an unbalanced set of div tags. 
</p>
<p>
And since that's more often than not the problem these days with CSS bugs - at least for us - I whipped up a drop dead dumb div tag counter which seems to work but I suspect isn't perfect since its about as naive as you can get. 
</p>
</i>
</quote>
<p>
He has <a href="http://fuzzyblog.com/divcounter/index.txt">the source</a> of the script included in the post as well as two examples of using it with <a href="http://fuzzyblog.com/divcounter/?url=http://msn.com">msn.com</a> and <a href="http://fuzzyblog.com/divcounter/?url=http://news.com/">news.com</a>. Other suggestions of tools to help with these problems are listed in the comments - the <a href="http://jennifermadden.com/scripts/ViewRenderedSource.html">View Rendered Source</a> Firefox extension, and the <a href="https://addons.mozilla.org/firefox/249/">HTML Validator</a> for Firefox.
</p>]]></description>
      <pubDate>Tue, 09 May 2006 06:03:23 -0500</pubDate>
    </item>
  </channel>
</rss>
