Skip to content

Commit 4a41252

Browse files
committed
[#5819] Fix notation and PHP template references
1 parent fad4099 commit 4a41252

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cookbook/form/create_custom_field_type.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ link for details), create a ``gender_widget`` block to handle this:
164164
twig:
165165
form:
166166
resources:
167-
- ':form/fields.html.twig'
167+
- 'form/fields.html.twig'
168168
169169
.. code-block:: xml
170170
@@ -181,7 +181,7 @@ link for details), create a ``gender_widget`` block to handle this:
181181
$container->loadFromExtension('twig', array(
182182
'form' => array(
183183
'resources' => array(
184-
':form/fields.html.twig',
184+
'form/fields.html.twig',
185185
),
186186
),
187187
));
@@ -197,7 +197,7 @@ link for details), create a ``gender_widget`` block to handle this:
197197
templating:
198198
form:
199199
resources:
200-
- ':form:fields.html.twig'
200+
- ':form:fields.html.php'
201201
202202
.. code-block:: xml
203203
@@ -212,7 +212,7 @@ link for details), create a ``gender_widget`` block to handle this:
212212
<framework:config>
213213
<framework:templating>
214214
<framework:form>
215-
<framework:resource>:form:fields.html.twig</twig:resource>
215+
<framework:resource>:form:fields.html.php</twig:resource>
216216
</framework:form>
217217
</framework:templating>
218218
</framework:config>
@@ -225,7 +225,7 @@ link for details), create a ``gender_widget`` block to handle this:
225225
'templating' => array(
226226
'form' => array(
227227
'resources' => array(
228-
':form:fields.html.twig',
228+
':form:fields.html.php',
229229
),
230230
),
231231
),

0 commit comments

Comments
 (0)