Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf48b414

Browse files
authored
Update create_custom_field_type.rst
1 parentbb0d522 commitf48b414

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)

[8]ページ先頭

©2009-2025 Movatter.jp