我正在从组织页面向人员控制器发送删除帖子,如下所示:
$this->Form->postLink(__('Delete'),
array('controller'=> 'people', 'action' => 'delete',
$person['id'], 'referer' ),
null,
__('Are you sure you want to delete # %s?',
$person['firstname']));
在人员控制器中,我正在设置这样的跨控制器通信:
$this->Security->allowedControllers = array("people", "company");
然而我还是被送进了黑洞。为什么?