0

I have been using zend framework for like three weeks...

Am currently using the isValid($_POST) method to validate the form, but I don't like how it shows the errors. I have been able to override the default errors already but I was looking for a way to foreach the whole $_POST array like it's done in normal php. I wanted to process the whole $_POST array and validate it, and if there are errors show them in a div I have created called 'errors' under the header of a page.

How to do this using zend framework?

1 Answer 1

1

The function to get error messages (according you're using InputFilters) is :

$form->getMessages();

Read this : http://framework.zend.com/manual/1.12/fr/zend.form.forms.html#zend.form.forms.validation

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.