i created a customFormtype in symfony2 and i’m using it in a formbuilder in my controller.
This is the html result when i render the form:
<div id="form">
<input type="hidden" id="form__token" name="form[_token]" value="2e8fe0d777b5c0d7d30d9bfd9d5143811c790b1d">
<div>
<label class=" required">Stars</label>
<!-- some other stuff -->
</div>
</div>
Where does the id form came from and where can i change the name?
Thank you very much.
The id of the form is defined by the getName() function
Ex. ‘task’ here. (http://symfony.com/doc/current/book/forms.html#creating-form-classes)