I am trying to get standard error messages in zend_form, but they do not.
I have it:
if ($form->isValid($formData)) { // do stuff } else { $form->populate($formData); $this->view->form = $form; }
When I submit an invalid form, the form is displayed in the view as intended, but from the tutorials it seems that error messages should appear by default?
What am I missing?
Thank you for your help!
Error messages are applied using the Decorator pattern. By default, there are some default Zend form element decorators.
I think you overwrite the default decorators, using, for example setDecorators().
setDecorators()
Source: https://habr.com/ru/post/1753986/More articles:APPLICATION UPDATE in asp.net using C # - c #How to add a description to a user management property in vb.net - vb.netIPhone simulator does not exit previous version of application - iphonehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1753984/what-are-the-factors-to-be-considered-when-migrating-to-an-earlier-version-of-c&usg=ALkJrhg68cE3h6epBM5VmRgqHswm23GyFgDoes anyone get mysql workbench 5.2 to work with the mast? - mysqlHow can I get a list of all mp3 files on an SD card regardless of the directory in android? - androidASP.NET MVC 2 Model Validation (DataAnnotes) in a Subobject - validationкак перевести шаблон электронной почты в magento? - magentoHow to make my private class visible to STD containers? - c ++How to track which page request is redirected to asp.net - redirectAll Articles