From 5dc3c39fd2d84b788eb4fff54a668f230ef38cce Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Mon, 16 Jul 2012 18:03:21 +0200 Subject: [PATCH] [Form] Moved the access to templating helpers out of the choice loop for performance reasons (PHP +100ms) --- .../Resources/views/Form/choice_widget_options.html.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/choice_widget_options.html.php b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/choice_widget_options.html.php index b43ab00e19..9d79a4b725 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/choice_widget_options.html.php +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/choice_widget_options.html.php @@ -1,9 +1,11 @@ + + $choice): ?> - - block('choice_widget_options', array('choices' => $choice)) ?> + + block('choice_widget_options', array('choices' => $choice)) ?> - +