Commit a2d5a015 authored by Fabien Potencier's avatar Fabien Potencier

minor #1288 [WIP] Mention use of controller() function in docs (mablae)

This PR was squashed before being merged into the 1.3 branch (closes #1288).

Discussion
----------

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

This was discussed on twitter before:

https://twitter.com/lsmith/status/669145035770851328

Commits
-------

9c6b02d6 [WIP] Mention use of controller() function in docs
parents ec1641b0 9c6b02d6
......@@ -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