Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
9c6b02d6
Commit
9c6b02d6
authored
Nov 24, 2015
by
Malte
Committed by
Fabien Potencier
May 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WIP] Mention use of controller() function in docs
parent
bf071d40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
doc/providers/twig.rst
doc/providers/twig.rst
+9
-0
No files found.
doc/providers/twig.rst
View file @
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
------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment