We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentbb0d522 commitf48b414Copy full SHA for f48b414
form/create_custom_field_type.rst
@@ -388,14 +388,14 @@ configuration, using the field is now much easier::
388
{
389
public function buildForm(FormBuilderInterface $builder, array $options)
390
391
- $builder->add('gender_code', 'gender', array(
+ $builder->add('gender_code', 'app_gender', array(
392
'placeholder' => 'Choose a gender',
393
));
394
}
395
396
397
Notice that instead of instantiating a new instance, you can just refer to
398
-it by the alias used in your service configuration, ``gender``. Have fun!
+it by the alias used in your service configuration, ``app_gender``. Have fun!
399
400
.. _`ChoiceType`:https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php
401
.. _`FieldType`:https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/Core/Type/FieldType.php