I have this code in my template:
<form action="{{ path('wba_create') }}" method="post" {{ form_enctype(form) }}>
{{ form_widget(form) }}
<p>
<button type="submit">Registrar</button>
</p>
</form>
And in my controller I have this annotation:
/**
*
* @Route("/", name="wba_create")
* @Method("POST")
*/
public function createAction(Request $request) {
....
}
But in the rendered HTML I got just <form method="post" action="/app_dev.php/">
why? What I miss here?