8000 Remove AppBundle · symfony/symfony-docs@7b4a649 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b4a649

Browse files
Mathias STRASSERwouterj
Mathias STRASSER
authored andcommitted
Remove AppBundle
The twig file is in `app/Resources/views`. Fix error `Unable to find template "AppBundle:Form:fields.html.twig"`
1 parent 83a5984 commit 7b4a649

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cookbook/form/create_custom_field_type.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ link for details), create a ``gender_widget`` block to handle this:
164164
twig:
165165
form:
166166
resources:
167-
- 'AppBundle:Form:fields.html.twig'
167+
- ':form/fields.html.twig'
168168
169169
.. code-block:: xml
170170
171171
<!-- app/config/config.xml -->
172172
<twig:config>
173173
<twig:form>
174-
<twig:resource>AppBundle:Form:fields.html.twig</twig:resource>
174+
<twig:resource>:form/fields.html.twig</twig:resource>
175175
</twig:form>
176176
</twig:config>
177177
@@ -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-
'AppBundle: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-
- 'AppBundle:Form'
200+
- ':form:fields.html.twig'
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>AppBundle:Form</twig:resource>
215+
<framework:resource>:form:fields.html.twig</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-
'AppBundle:Form',
228+
':form:fields.html.twig',
229229
),
230230
),
231231
),

0 commit comments

Comments
 (0)
0