Working with zend-validator

You need validate your form data before saving them in database. Zendframework has zend-validator component to validate the form input.

We will see how to use validator do some validation tasks
To validate the email field in form you can use following code inside the action in your controller

How to set custom error messages
You can set yourown messages to the validator

Zend Validators Document