File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/Symfony/Component/Form Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 24
24
* $formFactory = Forms::createFormFactory();
25
25
*
26
26
* $form = $formFactory->createBuilder()
27
- * ->add('firstName', 'text')
28
- * ->add('lastName', 'text')
29
- * ->add('age', 'integer')
30
- * ->add('gender', 'choice', array(
31
- * 'choices' => array('m' => 'Male', 'f' => 'Female'),
27
+ * ->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
28
+ * ->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
29
+ * ->add('age', 'Symfony\Component\Form\Extension\Core\Type\IntegerType')
30
+ * ->add('gender', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array(
31
+ * 'choices' => array('Male' => 'm', 'Female' => 'f'),
32
+ * 'choices_as_values' => true,
32
33
* ))
33
34
* ->getForm();
34
35
* </code>
You can’t perform that action at this time.
0 commit comments