Question : cakephp get present name
Answered by : stormy-sloth-kpt3du0djzg1
$controllerName = $this->request->getParam('controller');
// Prior to 3.4.0
$controllerName = $this->request->param('controller');
Source : https://book.cakephp.org/3/en/controllers/request-response.html | Last Update : Fri, 31 Dec 21