Created
December 23, 2020 13:56
-
-
Save bernard-ng/be987dd5dfad32bd601babc4daedeb5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="{{ path('admin_post_delete', { id: post.id }) }}" method="post"> | |
{# l'argument de csrf_token() est une chaîne arbitraire utilisée pour générer le toke #} | |
<input type="hidden" name="token" value="{{ csrf_token('delete-item') }}"/> | |
<button type="submit">Delete item</button> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment