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