Mirage
Mirage

Reputation: 31568

How can I use custom forms fields like table for symfony form

In Symfony docs they say to use this

<div>
    {{ form_label(form.task) }}
    {{ form_errors(form.task) }}
    {{ form_widget(form.task) }}
</div>

But this generates the label element.

But I want to have table <td> instead of <label>

And also for the input textbox, I want to mention the size of text box. Where can I do that?

Upvotes: 0

Views: 88

Answers (1)

Vitalii Zurian
Vitalii Zurian

Reputation: 17976

You have to define your form theme.

Probably, this tutorial is what you are looking for

Upvotes: 3

Related Questions