iallow to display labek and attribute into form_field block
This commit is contained in:
@@ -32,7 +32,13 @@ class CustomerCreation extends AbstractType
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
return $builder->add("name", "text")
|
||||
->add("email", "email")
|
||||
->add("email", "email", array(
|
||||
"attr" => array(
|
||||
"class" => "field"
|
||||
),
|
||||
"label" => "toto"
|
||||
)
|
||||
)
|
||||
->add('age', 'integer');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user