Skip to content

Commit b7d4d46

Browse files
committed
[#2057] Fixing another reference to the old render syntax
1 parent eb83f8c commit b7d4d46

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

book/templating.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,11 +703,14 @@ Symfony2 uses the standard ``render`` helper to configure ``hinclude`` tags:
703703

704704
.. code-block:: jinja
705705
706-
{% render '...:news', {'standalone': 'js'} %}
706+
{% render url('...'), {'standalone': 'js'} %}
707707
708708
.. code-block:: php
709709
710-
<?php echo $view['actions']->render('...:news', array('standalone' => 'js')) ?>
710+
<?php echo $view['actions']->render(
711+
$view['router']->generate('...'),
712+
array('standalone' => 'js')
713+
) ?>
711714
712715
.. note::
713716

0 commit comments

Comments
 (0)