@@ -185,8 +185,6 @@ link for details), create a ``shipping_widget`` block to handle this:
185185 rules). Further, the main config file should point to the custom form template
186186 so that it's used when rendering all forms.
187187
188- When using Twig this is:
189-
190188 .. configuration-block ::
191189
192190 .. code-block :: yaml
@@ -222,51 +220,6 @@ link for details), create a ``shipping_widget`` block to handle this:
222220 ],
223221 ]);
224222
225- For the PHP templating engine, your configuration should look like this:
226-
227- .. configuration-block ::
228-
229- .. code-block :: yaml
230-
231- # config/packages/framework.yaml
232- framework :
233- templating :
234- form :
235- resources :
236- - ' :form:fields.html.php'
237-
238- .. code-block :: xml
239-
240- <!-- config/packages/framework.xml -->
241- <?xml version =" 1.0" encoding =" UTF-8" ?>
242- <container xmlns =" http://symfony.com/schema/dic/services"
243- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
244- xmlns : framework =" http://symfony.com/schema/dic/symfony"
245- xsi : schemaLocation =" http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd
246- http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
247-
248- <framework : config >
249- <framework : templating >
250- <framework : form >
251- <framework : resource >:form:fields.html.php</twig : resource >
252- </framework : form >
253- </framework : templating >
254- </framework : config >
255- </container >
256-
257- .. code-block :: php
258-
259- // config/packages/framework.php
260- $container->loadFromExtension('framework', [
261- 'templating' => [
262- 'form' => [
263- 'resources' => [
264- ':form:fields.html.php',
265- ],
266- ],
267- ],
268- ]);
269-
270223 Using the Field Type
271224--------------------
272225
0 commit comments