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

[NFR] Implement getPut() #680

Closed
fdjean opened this issue May 31, 2013 · 1 comment
Closed

[NFR] Implement getPut() #680

fdjean opened this issue May 31, 2013 · 1 comment

Comments

@fdjean
Copy link

fdjean commented May 31, 2013

Hello,

$this->request->getPut()

Similar to getPost() or getQuery()
http://docs.phalconphp.com/en/latest/reference/request.html#accessing-the-request-from-controllers

Thx

@jeffreycahyono
Copy link

If your put data is in the form of query string:

$put = array();
parse_str($this->request->getRawBody() , $put);

If your put data is JSON, use json_decode($this->request->getRawBody()) instead

phalcon pushed a commit that referenced this issue Oct 19, 2013
Fix #680 add getPut/hasPut for \Phalcon\Http\Request
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

2 participants