I have experienced Zend Framework 1 and I\'ve build some apps with that framework.
Now, I\'m experimenting Zend Framework 2, but I\'m stuck on the url parameters. I\
From here:
$slug = $this->getEvent()->getRouteMatch()->getParam('slug');
More documentation here, but it looks kind of incomplete.
you can simply use this as well
$this->params()->fromQuery('slug',null);
$this->params()->fromPost('slug',null);
I hope it works...
Or simply:
$slug= $this->params('slug');
Why not this one:
$this->params()->fromRoute('slug');