alcatrazbr
4/20/2017 - 2:58 PM

ZF3 get params route

ZF3 get params route


// Get the RouteMatch object.
$routeMatch = $this->getEvent()->getRouteMatch();

// Get matched route's name.
$routeName = $routeMatch->getMatchedRouteName();

// Get all route parameters at once as an array.
$params = $routeMatch->getParams();

#pesquisar
#https://docs.zendframework.com/zend-router/routing/