Skip to content

Instantly share code, notes, and snippets.

@samsonasik
Created June 10, 2013 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsonasik/5749316 to your computer and use it in GitHub Desktop.
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