In controller you can do that with Params plugin:
$this->params()->fromQuery();
But fromQuery
returns standard GET
params from part ?var=value&var2=somevalue
.
Because you have nice urls you should use
$this->params()->fromRoute();
See Reference of Params class or ZF2 Manual Controller's plugins page for more details