Skip to content

Instantly share code, notes, and snippets.

@samsonasik
Created June 10, 2013 14:49
Show Gist options
  • Select an option

  • Save samsonasik/5749316 to your computer and use it in GitHub Desktop.

Select an option

Save samsonasik/5749316 to your computer and use it in GitHub Desktop.
get param value of route from ServiceManage
//by servicelocator
$this->getServiceLocator()->get('Router')
->match($this->getServiceLocator()->get('Request'))
->getParam('controller');
//by servicemanager
$sm->get('Router')
->match($sm->get('Request'))
->getParam('paramName')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment