Commit 9c6b02d6 authored by Malte's avatar Malte Committed by Fabien Potencier

[WIP] Mention use of controller() function in docs

parent bf071d40
......@@ -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
------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment