In View, I can get action by using
$this->action
But, I cannot get controller name by
$this->controller
$this->name
also give you controller's name.
Their difference with $this->params['controller']
is it's first letter capitalized
debug($this->name);
debug($this->params['controller']);
Results in:
\app\Controller\AppController.php (line 176)
'Users'
\app\Controller\AppController.php (line 177)
'users'