Magento2 获取 Controller, Module, Action, Router name

1 $controllerName = $this->getRequest()->getControllerName();
2 $actionName = $this->getRequest()->getActionName();
3 $routeName = $this->getRequest()->getRouteName();
4 $moduleName = $this->getRequest()->getModuleName(); 

 

posted @ 2016-11-07 16:32  wo0w  阅读(214)  评论(0)    收藏  举报