-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Why don't you use CI Input class to get query string? #544
Comments
Good point. I just took the old code and didn't think about refactoring it. Though the function is still needed if using the likes of a POST request with query params. |
If you POST (or PUT or DELETE or anything else) request with query string, PHP parses query string and sets It seems we can refactor the function like below: protected function _parse_query()
{
$this->_query_args = $this->input->get();
} |
I understood. It's a good change 👍 I was only pointing out that _parse_query() is still needed. |
I sent PR. I wrote functional tests: kenjis/ci-app-for-ci-phpunit-test@fda2365 |
Merged PR. |
This is simple question.
https://github.com/chriskacerguis/codeigniter-restserver/blob/master/application/libraries/REST_Controller.php#L1436
http://www.codeigniter.com/user_guide/libraries/input.html#CI_Input::get
The text was updated successfully, but these errors were encountered: