In Zend Framework 1 I can get them by doing:
$this->actionName = $this->getRequest()->getActionName();
$this->controllerName = $this->getRequest()->getControllerName();
In Zend Framework 2 I have no clue. How to obtain the controllerName
and actionName
?