https://www.example.com/api/test?a=1&b=2
I want to get the value of a, b in testAction of ApiController, I tried this:
$a = $this->request->get('a'); and $a = $this->request->getQuery('a');
It's not working. I searched and peaples say using getQuery should work, but, .... I need help....
Does it have a relationship with nginx config? Thanks