Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1e84ae9

Browse filesBrowse files
committed
Added Tests
1 parent fcb1bce commit 1e84ae9
Copy full SHA for 1e84ae9

File tree

Expand file treeCollapse file tree

1 file changed

+11
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-2
lines changed

‎reference/twig_reference.rst

Copy file name to clipboardExpand all lines: reference/twig_reference.rst
+11-2Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ Symfony2 Twig Extensions
55
========================
66

77
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`_
99
then scroll to the bottom).
1010

1111
Symfony2 adds more custom extension on top of Twig to integrate some components
1212
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.
1414

1515
There may also be tags in bundles you use that aren't listed here.
1616

@@ -118,6 +118,15 @@ Tags
118118
| ``{% endtranschoice %}`` | |
119119
+---------------------------------------------------+-------------------------------------------------------------------+
120120

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+
121130
Global Variables
122131
----------------
123132

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.