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
ac9cdded
Commit
ac9cdded
authored
Oct 21, 2012
by
Mike Mackintosh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update doc/providers/twig.rst
corrected the grammatical possessiveness of the services
parent
3b9351ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
doc/providers/twig.rst
doc/providers/twig.rst
+1
-1
No files found.
doc/providers/twig.rst
View file @
ac9cdded
...
@@ -103,7 +103,7 @@ The Twig provider provides a ``twig`` service::
...
@@ -103,7 +103,7 @@ The Twig provider provides a ``twig`` service::
This will render a file named ``views/hello.twig``.
This will render a file named ``views/hello.twig``.
In any Twig template, the ``app`` variable refers to the Application object.
In any Twig template, the ``app`` variable refers to the Application object.
So you can access any service
s
from within your view. For example to access
So you can access any service from within your view. For example to access
``$app['request']->getHost()``, just put this in your template:
``$app['request']->getHost()``, just put this in your template:
.. code-block:: jinja
.. code-block:: jinja
...
...
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