8000 bug #5819 Remove AppBundle (roukmoute) · symfony/symfony-docs@fad4099 · GitHub
[go: up one dir, main page]

Skip to content

Commit fad4099

Browse files
committed
bug #5819 Remove AppBundle (roukmoute)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5819). Discussion ---------- Remove AppBundle The twig file is in `app/Resources/views`. Fix error `Unable to find template "AppBundle:Form:fields.html.twig"` Commits ------- 7b4a649 Remove AppBundle
2 parents 83a5984 + 7b4a649 commit fad4099

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
8D46 <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