From 8fa958fb472b9e8928afd489752df4556a053a5d Mon Sep 17 00:00:00 2001 From: Andrii Volin Date: Sun, 30 Oct 2016 14:28:28 +0200 Subject: [PATCH] Update birthday.rst --- reference/forms/types/birthday.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/forms/types/birthday.rst b/reference/forms/types/birthday.rst index 2d961434b41..056fe21ad3e 100644 --- a/reference/forms/types/birthday.rst +++ b/reference/forms/types/birthday.rst @@ -77,14 +77,14 @@ If your widget option is set to ``choice``, then this field will be represented as a series of ``select`` boxes. When the placeholder value is a string, it will be used as the **blank value** of all select boxes:: - $builder->add('birthdate', 'birthday', array( + $builder->add('birthdate', BirthdayType::class, array( 'placeholder' => 'Select a value', )); Alternatively, you can use an array that configures different placeholder values for the year, month and day fields:: - $builder->add('birthdate', 'birthday', array( + $builder->add('birthdate', BirthdayType::class, array( 'placeholder' => array( 'year' => 'Year', 'month' => 'Month', 'day' => 'Day', )