Skip to content

Instantly share code, notes, and snippets.

@jmolivas
Created October 26, 2012 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmolivas/3959750 to your computer and use it in GitHub Desktop.
Save jmolivas/3959750 to your computer and use it in GitHub Desktop.
Twig - $app/console generate:doctrine:crud on #Symfony 2.1
<!-- edit.html.twig -->
<form action="{{ path('project_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
<input type="hidden" name="_method" value="PUT" />
{{ form_widget(edit_form) }}
<p>
<button type="submit" class="btn btn-primary">Edit</button>
</p>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment