cakephp get present name

To get the present name in CakePHP, you can use the following code:

$this->request->getParam('controller');

This code retrieves the current controller name. If you want to get the present action name, you can use the following code:

$this->request->getParam('action');

These code snippets will allow you to obtain the present name in CakePHP without any additional personal words or sentences.