Category: forms

Symfony authentification form does not run

I have the form type : class UserType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder // ->add(’email’) ->add(‘username’, TextType::class) ->add(‘password’, PasswordType::class) ; } public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ ‘data_class’ => User::class, ]); } } The…

How to add Radio Button in Symfony Form

//RamsurathType.php use SymfonyComponentFormExtensionCoreTypeRadioType; //… ->add(‘Gender’,RadioType::class,array( ‘choices’=>[ ‘Male’=>’Male’, ‘Female’=>’Female’ ] )); Hi all I’m new to symfony. Today i created a symfony Form using php bin/console make:form . After that i created a Form Type(Ramsurath Type.php) and Entity with(Firstname,Lastname,Email,Gender,Phone) Text Fields…