I have this code, but it does not work:
$builder->add('name','text',array( 'label' => 'Due Date', ));
the problem i have in fosuserbundle is i have top form
<?php namespace Acme\UserBundle\Form\Type; use Symfony\Component\Form\FormBuilder; use FOS\UserBundle\Form\Type\RegistrationFormType as BaseType; class RegistrationFormType extends BaseType { public function buildForm(FormBuilder $builder, array $options) {
but it doesnโt work, do not give me any errors and set the label "fos_user_registration_form_name"
source share