Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d8088ff

Browse filesBrowse files
committed
Fixed vars as object property, not array
1 parent dd5a692 commit d8088ff
Copy full SHA for d8088ff

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎book/forms.rst

Copy file name to clipboardExpand all lines: book/forms.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ to get the ``id``:
890890

891891
.. code-block:: html+php
892892

893-
<?php echo $form['task']['vars']['id']?>
893+
<?php echo $form['task']->vars['id']?>
894894

895895
To get the value used for the form field's name attribute you need to use
896896
the ``full_name`` value:
@@ -903,7 +903,7 @@ the ``full_name`` value:
903903

904904
.. code-block:: html+php
905905

906-
<?php echo $form['task']['vars']['full_name'] ?>
906+
<?php echo $form['task']->vars['full_name'] ?>
907907

908908
Twig Template Function Reference
909909
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.