0

I have a RESTful API which should handle queries like: /api/elements/search/?filter={json_here}.

Please tell me how can I catch get-parameter $_GET['filter'] from query string in latest ZF2 (v2.3.3) and get my json filter.

1 Answer 1

2

In the controller you can access it using $this->params()->fromQuery('filter')

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.