Skip to content

add documentation about handling of _method parameters #1002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lsmith77 opened this issue Jan 17, 2012 · 3 comments
Closed

add documentation about handling of _method parameters #1002

lsmith77 opened this issue Jan 17, 2012 · 3 comments
Milestone

Comments

@lsmith77
Copy link
Contributor

https://github.com/symfony/HttpFoundation/blob/master/Request.php#L841

@weaverryan
Copy link
Member

Yes, totally agree. The link is a bit out of date now - so @lsmith77 is talking about the fact that if there is a _method parameter (query parameter or post parameter) in the request, then its value becomes the request method. This allows you to "fake" PUT requests in a form, simply by including a hidden input called _method with a value of PUT.

I think this would be a good, short, cookbook article - "How to use a _method parameter to fake PUT and DELETE requests".

@richardmiller-zz
Copy link
Contributor

@weaverryan I think this can be closed now as per #1603

@wouterj
Copy link
Member

wouterj commented Nov 4, 2012

@weaverryan ping. This can be closed and the Actionable label should be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants