Validating URIs in Zend_Form

Sudheer has posted an article over on LAMPComputing.com on how to Valdiate URIs in form fields by using a custom validator.

I came across a situation where I had to write a custom class to validate URIs. To write the custom URI validator I made use of Zend_Uri which aids in manipulating and validating Uniform Resource Identifiers (URIs). In particular I used Zend_Uri::check() function to validate the URI in question.

He then goes on to show how he created his validator class and how to use it with Zend_Form.

Edit 15 Apr 2009: Updated link as site has moved.

Posted by Rob on 8th August 2008 under Around the web & Tips and Tricks | 1 Comment »

One Response to “Validating URIs in Zend_Form”

  1. Sudheer responded on 10 Aug 2008 at 9:53 am #

    I was wondering why this was not packaged with Zend Framework itself.