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

Commit

Permalink
[WIP] Mention use of controller() function in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mablae authored and fabpot committed May 3, 2016
1 parent bf071d4 commit 9c6b02d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/providers/twig.rst
Expand Up @@ -120,6 +120,15 @@ from a template:
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

Traits
------

Expand Down

0 comments on commit 9c6b02d

Please sign in to comment.