-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nette\Forms\Form
is not Nette\Application\UI\Form
but fails silently
#147
Comments
Well, I reckon it's documented pretty well... https://doc.nette.org/en/2.4/forms#toc-forms-in-presenters. But in general I have to agree with you, this is one of the most common blockers for beginners... |
This is by design unfortunately, nothing to fix here... |
What about rename it to |
That would be a massive BC break with almost no added value (as this behavior is well documented). (Btw "App" in "AppForm" would duplicate the namespace it lives in and thus the class name as well - Nette\Application\UI\Form.) |
@Majk578 I agree. I think we can close it. |
Maybe you could add the hint about the two different kind of |
Description
I'm just starting to learn Nette and after looking through documentation and example code i tried to setup a very simple Form. The Form rendered fine, but the
onSuccess
handler was never executed and it took me a very long time to figure out the problem:I created a
Nette\Forms\Form
-Object instead of theNette\Application\UI\Form
-Object that i was supposed to use.It would be great if there would be an Exception if one tries to use the
Nette\Forms\Form
like aNette\Application\UI\Form
. Or at least mention this pitfall in the documentation somewhere.Thanks.
Steps To Reproduce
The text was updated successfully, but these errors were encountered: