Skip to content

Commit b19f1dc

Browse files
committed
bug #6904 Update create_custom_field_type.rst (tuanalumi)
This PR was merged into the 2.7 branch. Discussion ---------- Update create_custom_field_type.rst Commits ------- f48b414 Update create_custom_field_type.rst
2 parents e3004b3 + f48b414 commit b19f1dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form/create_custom_field_type.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,14 +388,14 @@ configuration, using the field is now much easier::
388388
{
389389
public function buildForm(FormBuilderInterface $builder, array $options)
390390
{
391-
$builder->add('gender_code', 'gender', array(
391+
$builder->add('gender_code', 'app_gender', array(
392392
'placeholder' => 'Choose a gender',
393393
));
394394
}
395395
}
396396

397397
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!
398+
it by the alias used in your service configuration, ``app_gender``. Have fun!
399399

400400
.. _`ChoiceType`: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php
401401
.. _`FieldType`: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/Core/Type/FieldType.php

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy