News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Allen's Blog:
Zend_Filter_Input / Zend_Validate Messages
September 17, 2007 @ 08:48:00

Rob Allen has been working with the Zend_Filter component of the Zend Framework and has discovered a few things:

The basic usage of Zend_Filter_Input is [a simple call to Zend_Filter_Input with the filter types and data to filter]. The problem is that the message you get out isn't always written as you would like. Consider the output if the body record is empty. The text isn't exactly what I would want to display to a user. To change it you pass in a messages parameter to the $validators array.

There's a long list of these "messages parameters" and Rob includes them in the post - things like NOT_ALNUM, CHECKSUM, QUOTED_STRING, INVALID_DASH and UNDECIPHERABLE_TLD (37 of them in all).

1 comment voice your opinion now!
zendframework zendfilterinput zendvalidate messages list zendframework zendfilterinput zendvalidate messages list


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Using Zend_Search_Lucene, the PHP Lucene Implementation

Federico Cargnelutti's Blog: Zend Framework DAL: DAOs and DataMappers

Kevin Schroeder's Blog: Deployment beta for Zend Server 5.5 - Getting Started

Zend Developer Zone: Zend Framework Beta 0.9.3 Released

Pádraic Brady's Blog: Complex Web Pages with the Zend Framework?


Community Events





Don't see your event here?
Let us know!


introduction library series language interview podcast community framework code developer threedevsandamaybe application list project bugfix configure wordpress api release laravel

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework