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
c65e7568
Commit
c65e7568
authored
Nov 05, 2012
by
Igor Wiedler
Committed by
Fabien Potencier
Nov 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add note to twig docs that the baseUrl must be prepended
parent
0ff83c40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
doc/providers/twig.rst
doc/providers/twig.rst
+7
-2
No files found.
doc/providers/twig.rst
View file @
c65e7568
...
@@ -115,10 +115,15 @@ from a template:
...
@@ -115,10 +115,15 @@ from a template:
.. code-block:: jinja
.. code-block:: jinja
{{ render('/sidebar') }}
{{ render(
app.request.baseUrl ~
'/sidebar') }}
{# or if you are also using UrlGeneratorServiceProvider with the SymfonyBridgesServiceProvider #}
{# or if you are also using UrlGeneratorServiceProvider with the SymfonyBridgesServiceProvider #}
{{ render(path('sidebar')) }}
{{ render(url('sidebar')) }}
.. note::
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.
Traits
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