News Feed
Jobs Feed
Sections




News Archive
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

Federico Cargnelutti's Blog: Domain-Driven Design with Zend Framework

Muhammad Hussein Fattahizadeh's Blog: Zend Config tree solution

CakeBaker: Use components from the Zend Framework with CakePHP

Cal Evan's Blog: Three Lists I Never Want to See Again

Padraic Brady's Blog: Zend Framework: Survive The Deep End Update


Community Events











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


object release zendframework2 development introduction tool series phpunit framework example functional testing community opinion podcast application unittest interview code language

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