ZF-12260: [zend_form] ZF 1.11 How to display the errors of a connexion form.

Issue Type: 1.x to 2.x Integration Created: 2012-05-28T21:21:58.000+0000 Last Updated: 2012-05-29T10:23:19.000+0000 Status: Closed Fix version(s): Reporter: momotre (zendgeeck) Assignee: Frank Brückner (frosch) Tags: - Zend_Form

  • validating

Related issues: Attachments:


Hello! I've written a simple form connexion (login + password). After performing a if (!$form->isValid($formData)) i would like to display the form and the errors. All i get is "An error occured - Error!" coming from the ErrorController.

Doc is not quite explicit about that.

Thank you.


Posted by Frank Brückner (frosch) on 2012-05-29T10:22:47.000+0000

Add these 2 lines of code to your "application.ini" and you will see the errors:

<pre class="highlight">resources.frontcontroller.throwExceptions          = 1
resources.frontcontroller.params.displayExceptions = 1

Please use for all other question the mailing lists, because this is a bug tracker and not a forum!

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.