Свежайшие Пирожки от CakePHP по-русски

Полнейшее руководство CakePHP 1.2 на русском языке, горячие новости и полезные статьи

node()

The AclBehavior also allows you to retrieve the Acl node associated with a model record. After setting $model->id. You can use $model->node() to retrieve the associated Acl node.

You can also retrieve the Acl Node for any row, by passing in a data array.

Простой текст
  1. $this->User->id = 1;
  2. $node = $this->User->node();
  3. $user = array('User' => array(
  4. 'id' => 1
  5. ));
  6. $node = $this->User->node($user);

Will both return the same Acl Node information.