Commit 271e77a8 authored by Fabien Potencier's avatar Fabien Potencier

merged branch mikemackintosh/patch-1 (PR #517)

This PR was merged into the master branch.

Commits
-------

ac9cdded Update doc/providers/twig.rst

Discussion
----------

Update doc/providers/twig.rst

corrected the grammatical possessiveness of the word services 

---------------------------------------------------------------------------

by igorw at 2012-10-21T18:20:54Z

👍
parents 3b9351ff 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 services 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment