From 483397b990c5e3c6fa8ffff0545fe2e65e028d3b Mon Sep 17 00:00:00 2001 From: Mathias STRASSER Date: Wed, 21 Oct 2015 00:46:37 +0200 Subject: [PATCH] Remove AppBundle The twig file is in `app/Resources/views`. Fix error `Unable to find template "AppBundle:Form:fields.html.twig"` --- cookbook/form/create_custom_field_type.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cookbook/form/create_custom_field_type.rst b/cookbook/form/create_custom_field_type.rst index 91dfe580c5e..78017b263cd 100644 --- a/cookbook/form/create_custom_field_type.rst +++ b/cookbook/form/create_custom_field_type.rst @@ -167,13 +167,13 @@ link for details), create a ``gender_widget`` block to handle this: # app/config/config.yml twig: form_themes: - - 'AppBundle:Form:fields.html.twig' + - ':form/fields.html.twig' .. code-block:: xml - AppBundle:Form:fields.html.twig + :form/fields.html.twig .. code-block:: php @@ -181,7 +181,7 @@ link for details), create a ``gender_widget`` block to handle this: // app/config/config.php $container->loadFromExtension('twig', array( 'form_themes' => array( - 'AppBundle:Form:fields.html.twig', + ':form/fields.html.twig', ), )); @@ -196,7 +196,7 @@ link for details), create a ``gender_widget`` block to handle this: templating: form: resources: - - 'AppBundle:Form' + - ':form:fields.html.twig' .. code-block:: xml @@ -211,7 +211,7 @@ link for details), create a ``gender_widget`` block to handle this: - AppBundle:Form + :form:fields.html.twig @@ -224,7 +224,7 @@ link for details), create a ``gender_widget`` block to handle this: 'templating' => array( 'form' => array( 'resources' => array( - 'AppBundle:Form', + ':form:fields.html.twig', ), ), ),