@@ -32,7 +32,7 @@ Functions
32
32
| ``render(path('route', {params})) `` | |
33
33
| ``render(url('route', {params})) `` | |
34
34
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
35
- | ``render_esi(controller('B:C:a', {params})) `` | This will generates an ESI tag when possible or fallback to the ``render `` |
35
+ | ``render_esi(controller('B:C:a', {params})) `` | This will generate an ESI tag when possible or fallback to the ``render `` |
36
36
| ``render_esi(url('route', {params})) `` | behavior otherwise. For more information, see :ref: `templating-embedding-controller `. |
37
37
| ``render_esi(path('route', {params})) `` | |
38
38
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
@@ -75,28 +75,28 @@ Functions
75
75
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
76
76
| ``logout_path(key) `` | This will generate the relative logout URL for the given firewall |
77
77
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
78
- | ``logout_url(key) `` | Equal to ``logout_path(...) `` but this will generate an absolute url |
78
+ | ``logout_url(key) `` | Equal to ``logout_path(...) `` but this will generate an absolute URL |
79
79
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
80
- | ``path(name, parameters = {}) `` | Get a relative url for the given route, more information in |
80
+ | ``path(name, parameters = {}) `` | Get a relative URL for the given route, more information in |
81
81
| | ":ref: `book-templating-pages `". |
82
82
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
83
- | ``url(name, parameters = {}) `` | Equal to ``path(...) `` but it generates an absolute url |
83
+ | ``url(name, parameters = {}) `` | Equal to ``path(...) `` but it generates an absolute URL |
84
84
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
85
85
86
86
Filters
87
87
-------
88
88
89
89
.. versionadded :: 2.1
90
- The ``humanize `` filter was added in Symfony2 .1
90
+ The ``humanize `` filter was added in Symfony 2 .1
91
91
92
92
+---------------------------------------------------------------------------------+-------------------------------------------------------------------+
93
93
| Filter Syntax | Usage |
94
94
+=================================================================================+===================================================================+
95
95
| ``text|humanize `` | Makes a technical name human readable (replaces underscores by |
96
- | | spaces and capitalizes the string) |
96
+ | | spaces and capitalizes the string). |
97
97
+---------------------------------------------------------------------------------+-------------------------------------------------------------------+
98
98
| ``text|trans(arguments = {}, domain = 'messages', locale = null) `` | This will translate the text into the current language, more |
99
- | | information in . |
99
+ | | information in |
100
100
| | :ref: `Translation Filters <book-translation-filters >`. |
101
101
+---------------------------------------------------------------------------------+-------------------------------------------------------------------+
102
102
| ``text|transchoice(count, arguments = {}, domain = 'messages', locale = null) `` | This will translate the text with pluralization, more information |
@@ -165,8 +165,8 @@ Global Variables
165
165
+-------------------------------------------------------+------------------------------------------------------------------------------------+
166
166
| Variable | Usage |
167
167
+=======================================================+====================================================================================+
168
- | ``app `` *Attributes *: ``app.user ``, ``app.request `` | The ``app `` variable is available everywhere, and gives you quick |
169
- | ``app.session ``, ``app.environment ``, ``app.debug `` | access to many commonly needed objects. The ``app `` variable is |
168
+ | ``app `` *Attributes *: ``app.user ``, ``app.request ``, | The ``app `` variable is available everywhere, and gives you quick |
169
+ | ``app.session ``, ``app.environment ``, ``app.debug ``, | access to many commonly needed objects. The ``app `` variable is |
170
170
| ``app.security `` | instance of :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Templating\\ GlobalVariables ` |
171
171
+-------------------------------------------------------+------------------------------------------------------------------------------------+
172
172
@@ -176,12 +176,11 @@ Symfony Standard Edition Extensions
176
176
The Symfony Standard Edition adds some bundles to the Symfony2 Core Framework.
177
177
Those bundles can have other Twig extensions:
178
178
179
- * **Twig Extension ** includes all extensions that do not belong to the
180
- Twig core but can be interesting. You can read more in
181
- `the official Twig Extensions documentation `_
179
+ * **Twig Extensions ** includes some interesting extensions that do not belong to the
180
+ Twig core. You can read more in `the official Twig Extensions documentation `_;
182
181
* **Assetic ** adds the ``{% stylesheets %} ``, ``{% javascripts %} `` and
183
182
``{% image %} `` tags. You can read more about them in
184
- :doc: `the Assetic Documentation </cookbook/assetic/asset_management >`;
183
+ :doc: `the Assetic Documentation </cookbook/assetic/asset_management >`.
185
184
186
185
.. _`the official Twig Extensions documentation` : http://twig.sensiolabs.org/doc/extensions/index.html
187
186
.. _`http://twig.sensiolabs.org/documentation` : http://twig.sensiolabs.org/documentation
0 commit comments