Welcome to the Cookbook

loading...

5.2.5.5 mapActions

このセクションには保留されている変更があります. More information about translations

If you are using Acl in CRUD mode, you may want to assign certain non-default actions to each part of CRUD.

$this->Auth->mapActions(
	array(
		'create' => array('someAction'),
		'read' => array('someAction', 'someAction2'),
		'update' => array('someAction'),
		'delete' => array('someAction')
	)
);
  1. $this->Auth->mapActions(
  2. array(
  3. 'create' => array('someAction'),
  4. 'read' => array('someAction', 'someAction2'),
  5. 'update' => array('someAction'),
  6. 'delete' => array('someAction')
  7. )
  8. );