0

Here is an example of setting up the validators as explained in the Manual http://zendframework.com/manual/en/zend.filter.input.html

$validators = array('account' => 'Alpha');

This checks that the input field is on Alphabets.

The question is, how do i find out the other options that can be used for Validating apart from "Alpha"

Where can I find the other Validation constants?

1 Answer 1

3

The page you are looking at is the manual page for Zend_Filter, you'd be better reading the Zend_Validate page.

If you look at this manual page, you will see a list of standard validator classes. You can use any of these as an option in $validators. You just use the name of the validator as the option.

For example to use the Date validator you would do this:-

$validators = array('account' => 'Date');

You can also find a list of validators if you look in your library/Zend/Validate folder.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.