Skip to content

Commit

Permalink
[#2057] Fixing another reference to the old render syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Dec 24, 2012
1 parent eb83f8c commit b7d4d46
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,14 @@ Symfony2 uses the standard ``render`` helper to configure ``hinclude`` tags:

.. code-block:: jinja
{% render '...:news', {'standalone': 'js'} %}
{% render url('...'), {'standalone': 'js'} %}
.. code-block:: php
<?php echo $view['actions']->render('...:news', array('standalone' => 'js')) ?>
<?php echo $view['actions']->render(
$view['router']->generate('...'),
array('standalone' => 'js')
) ?>
.. note::

Expand Down

0 comments on commit b7d4d46

Please sign in to comment.