Welcome to the Cookbook

loading...

5.2.5.1 action

action (string $action = ':controller/:action')

If you are using ACO's as part of your ACL structure, you can get the path to the ACO node bound to a particular controller/action pair:

    $acoNode = $this->Auth->action('users/delete');
  1. $acoNode = $this->Auth->action('users/delete');

If you don't pass in any values, it uses the current controller / action pair