php - How in i display label with form field in collections of forms in symfony2
Get the solution ↓↓↓Solution:
you can set the label in any field by using configuration options
$builder->add('idtype', 'text',
array(
'label' => 'your label',
'empty_value' => '',
'preferred_choices' => array('0', '1', '2'),
'required' => 'true'
));
You also can use a variable to set the value:
$builder->add('idtype', 'text',
array(
'label' => $value,
'empty_value' => '',
'preferred_choices' => array('0', '1', '2'),
'required' => 'true'
));
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: your lock file does not contain a compatible set of packages. please run composer update
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.