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

Commit

Permalink
minor #1288 [WIP] Mention use of controller() function in docs (mablae)
Browse files Browse the repository at this point in the history
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
-------

9c6b02d [WIP] Mention use of controller() function in docs
  • Loading branch information
fabpot committed May 3, 2016
2 parents ec1641b + 9c6b02d commit a2d5a01
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 a2d5a01

Please sign in to comment.