Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
tweaked previous merge
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 3, 2016
1 parent a2d5a01 commit bd7891f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/providers/twig.rst
Expand Up @@ -115,20 +115,18 @@ from a template:
{# or if you are also using the UrlGeneratorServiceProvider #}
{{ render(url('sidebar')) }}
{# or you can reference a controller directly without defining a route for it #}
{{ render(controller(controller)) }}
.. note::

You must prepend the ``app.request.baseUrl`` to render calls to ensure
that the render works when deployed into a sub-directory of the docroot.

.. code-block:: jinja
{# You may also link to the controller directly without defining a route for it: #}
{{ render(controller(controller, attributes, query)) }}
.. note::

Visit the symfony documentation for more information: http://symfony.com/doc/current/reference/twig_reference.html#controller
Read the Twig reference_ for Symfony document to learn more about the various Twig functions

Traits
------

Expand Down Expand Up @@ -168,3 +166,5 @@ You can configure the Twig environment before using it by extending the

For more information, check out the `official Twig documentation
<http://twig.sensiolabs.org>`_.

.. reference_:: https://symfony.com/doc/current/reference/twig_reference.html#controller

0 comments on commit bd7891f

Please sign in to comment.