Deleting Resources
app_book_delete:
path: /books/{id}
methods: [DELETE]
defaults:
_controller: app.controller.book::deleteActionCalling an Action with DELETE method
<form method="post" action="{{ path('app_book_delete', {'id': book.id}) }}">
<input type="hidden" name="_method" value="DELETE" />
<button type="submit">
Delete
</button>
</form>Overriding the Criteria
Custom Redirect After Success
Custom Event Name
Configuration Reference
Last updated
Was this helpful?
