Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Update forms.rst#3409
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
Update forms.rst#3409
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Accessing form values via `vars` property instead of getter. Updated PHP templating examples.
Accessing form values via `vars` property instead of getter. Updated PHP templating examples.
Fixed typo. |
@@ -890,7 +890,7 @@ to get the ``id``: | |||
.. code-block:: html+php | |||
<?php echo $form['task']->get('id')?> | |||
<?php echo $form['task']['vars']['id']?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
this should be->vars
, not['vars']
, otherwise you are not accessing the variables of the FormView, but retrieving the child form namedvars
Whoops. fixed. |
Thanks Zilvinas! Great fix - easy merge! Cheers! |
Accessing form values via
vars
property instead of getter. Updated PHP templating examples.