From 695cb2056e966d48e71108b41ba3999a2fa91dc8 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Wed, 24 Sep 2014 11:00:32 -0500 Subject: [PATCH] [#4003] A few more form_themes config changes --- book/forms.rst | 15 +++++---------- cookbook/form/create_custom_field_type.rst | 15 +++++---------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/book/forms.rst b/book/forms.rst index b6f4ddbfd4d..b66dab4a1de 100644 --- a/book/forms.rst +++ b/book/forms.rst @@ -1578,9 +1578,8 @@ file: # app/config/config.yml twig: - form: - resources: - - 'AcmeTaskBundle:Form:fields.html.twig' + form_themes: + - 'AcmeTaskBundle:Form:fields.html.twig' # ... .. code-block:: xml @@ -1594,9 +1593,7 @@ file: http://symfony.com/schema/dic/twig http://symfony.com/schema/dic/twig/twig-1.0.xsd"> - - AcmeTaskBundle:Form:fields.html.twig - + AcmeTaskBundle:Form:fields.html.twig @@ -1605,10 +1602,8 @@ file: // app/config/config.php $container->loadFromExtension('twig', array( - 'form' => array( - 'resources' => array( - 'AcmeTaskBundle:Form:fields.html.twig', - ), + 'form_themes' => array( + 'AcmeTaskBundle:Form:fields.html.twig', ), // ... )); diff --git a/cookbook/form/create_custom_field_type.rst b/cookbook/form/create_custom_field_type.rst index 3cb5f33c265..aa5420d32a6 100644 --- a/cookbook/form/create_custom_field_type.rst +++ b/cookbook/form/create_custom_field_type.rst @@ -159,27 +159,22 @@ link for details), create a ``gender_widget`` block to handle this: # app/config/config.yml twig: - form: - resources: - - 'AcmeDemoBundle:Form:fields.html.twig' + form_themes: + - 'AcmeDemoBundle:Form:fields.html.twig' .. code-block:: xml - - AcmeDemoBundle:Form:fields.html.twig - + AcmeDemoBundle:Form:fields.html.twig .. code-block:: php // app/config/config.php $container->loadFromExtension('twig', array( - 'form' => array( - 'resources' => array( - 'AcmeDemoBundle:Form:fields.html.twig', - ), + 'form_themes' => array( + 'AcmeDemoBundle:Form:fields.html.twig', ), ));