File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ Symfony2 Twig Extensions
5
5
========================
6
6
7
7
Twig is the default template engine for Symfony2. By itself, it already contains
8
- a lot of build-in functions, filters and tags (`http://twig.sensiolabs.org/documentation `_
8
+ a lot of build-in functions, filters, tags and tests (`http://twig.sensiolabs.org/documentation `_
9
9
then scroll to the bottom).
10
10
11
11
Symfony2 adds more custom extension on top of Twig to integrate some components
12
12
into the Twig templates. Below is information about all the custom functions,
13
- filters and tags that are added when using the Symfony2 Core Framework.
13
+ filters, tags and tests that are added when using the Symfony2 Core Framework.
14
14
15
15
There may also be tags in bundles you use that aren't listed here.
16
16
@@ -118,6 +118,15 @@ Tags
118
118
| ``{% endtranschoice %} `` | |
119
119
+---------------------------------------------------+-------------------------------------------------------------------+
120
120
121
+ Tests
122
+ -----
123
+
124
+ +---------------------------------------------------+------------------------------------------------------------------------------+
125
+ | Test Syntax | Usage |
126
+ +===================================================+==============================================================================+
127
+ | ``selectedchoice(choice, selectedValue) `` | This will return ``true `` if the choice is selected for the given form value |
128
+ +---------------------------------------------------+------------------------------------------------------------------------------+
129
+
121
130
Global Variables
122
131
----------------
123
132
You can’t perform that action at this time.
0 commit comments