Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Correction to suggested individual twig rendering of password and confirmation entries in 'repeated' component.#2855
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
the error message 'Method "first" for object"Symfony\Component\Form\FormView" does not exist'. (Same error messagedescribed in this thread:<http://forum.symfony-project.org/viewtopic.php?f=23&t=36193>.) I readthe "password" and "confirm" strings out of of the HTML generated bysymfony. I am not sure whether this is a bug in documentation, a bug inthe 'repeated' object, or the result of a misuse on my part.
tommygnr commentedJul 25, 2013
This is a misuse on your part, however the documentation could perhaps be clearer. first_name =>'password',second_name =>'confirm' When you should be using first_options =>array('label' =>'password',),second_options =>array('label' =>'confirm',) In almost all use cases for the repeated field there is no need to use the |
wouterj commentedJul 25, 2013
@tommygnr could you please create an issue explaining what should be improved? Then we can close this one. @alexcoventry bad that this wasn't a real bug! Hope to see other fixes from you in the furture. |
alexcoventry commentedJul 26, 2013
@tommygnr No, you're right, the documentation is clear and I was confused. Sorry about that. But actually I was using first_options => 'password'. I mentioned {first,second}_name because those actually work for me. |
weaverryan commentedAug 17, 2013
Hi guys! I've made a change at sha:4b5a44a to hopefully make this clearer. We actually already had a note, but since it was below the example, I'm not sure if people noticed it :). Thanks! |
The corrected lines worked for me, whereas the suggested lines led to
the error message 'Method "first" for object
"Symfony\Component\Form\FormView" does not exist'. (Same error message
described in this thread:
http://forum.symfony-project.org/viewtopic.php?f=23&t=36193.) I read
the "password" and "confirm" strings out of of the HTML generated by
symfony. I am not sure whether this is a bug in documentation, a bug in
the 'repeated' object, or the result of a misuse on my part.