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
bd7891f8
Commit
bd7891f8
authored
May 03, 2016
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaked previous merge
parent
a2d5a015
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
doc/providers/twig.rst
doc/providers/twig.rst
+7
-7
No files found.
doc/providers/twig.rst
View file @
bd7891f8
...
@@ -115,19 +115,17 @@ from a template:
...
@@ -115,19 +115,17 @@ from a template:
{# or if you are also using the UrlGeneratorServiceProvider #}
{# or if you are also using the UrlGeneratorServiceProvider #}
{{ render(url('sidebar')) }}
{{ render(url('sidebar')) }}
{# or you can reference a controller directly without defining a route for it #}
{{ render(controller(controller)) }}
.. note::
.. note::
You must prepend the ``app.request.baseUrl`` to render calls to ensure
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.
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::
.. note::
Visit the symfony documentation for more information: http://symfony.com/doc/current/reference/twig_reference.html#controller
Read the Twig reference_ for Symfony document to learn more about the various Twig functions
Traits
Traits
------
------
...
@@ -168,3 +166,5 @@ You can configure the Twig environment before using it by extending the
...
@@ -168,3 +166,5 @@ You can configure the Twig environment before using it by extending the
For more information, check out the `official Twig documentation
For more information, check out the `official Twig documentation
<http://twig.sensiolabs.org>`_.
<http://twig.sensiolabs.org>`_.
.. reference_:: https://symfony.com/doc/current/reference/twig_reference.html#controller
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