Skip to content
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

Get PATCH or others PARAMS #384

Open
URSELF-FR opened this issue Feb 7, 2018 · 1 comment
Open

Get PATCH or others PARAMS #384

URSELF-FR opened this issue Feb 7, 2018 · 1 comment

Comments

@URSELF-FR
Copy link

URSELF-FR commented Feb 7, 2018

Hi, I use your plugin in my RESTFUll project and I am using PATCH, PUT and DELETE methods.
I configured the routes and I don't have any problems, but in my Controller, I was looking for the best way to use the params send with the request...

Example, in POST or in GET, I could use $request->params(), which gives me all the datas, but if I use PATCH or another it didn't work...

SO I used a pure php solution to receive my datas with : parse_str(file_get_contents('php://input'), $_PATCH); then I can access with $_PATCH.

Is there a way with your router to access theses datas? Like $request->getPatchParams(); or something like this??? Thanks for your answer.

@rwrz
Copy link

rwrz commented Jun 10, 2018

I think it should have somethng like this.

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

1 participant