zendframework / zend-inputfilter

InputFilter component from Zend Framework
BSD 3-Clause "New" or "Revised" License
64 stars 50 forks source link

setMessages not working properly #19

Closed googlle closed 9 years ago

googlle commented 9 years ago

Hello.

I tried to validate my form. In controller I use this code

if ($formUrl != $url) {
    $form->get('url')->setMessages(array('Link is wrong'));
}

if ($form->isValid()) {
    echo 'validate';
}

If I set "setMessages" - form is validate, but form must not be validate

Maks3w commented 9 years ago

You should open the issue on https://github.com/zendframework/zend-form/issues