get value field not declared in nameType.php
i have a form declared y nameType.php and in the view render all field but
i want add other field manually.
form:
<form action="{{ path('create') }}" method="post" {{ form_enctype(form) }}>
{{ form_widget(form) }}
<input type="text" value="2">
</form>
and get in the controller values :
$form->bindRequest($request);
how could collect the value of the input to the controller?
No comments:
Post a Comment