1
我送從組織頁面刪除帖子一人控制是這樣的:CakePHP的安全組件黑洞刪除後
$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");
但我仍然被送到黑洞。爲什麼?
「公司」是您正在討論的組織頁面的控制者嗎? –
是的,這是正確的。 – Will