如何在cakephp中禁用某些操作的安全组件?

sha*_*lpk 3 html css php cakephp

我的add_note动作中有一个表单,我不想SecurityComponent放置它的标记或检查.我该怎么做呢?

我试过requireAuth('some_other_action')等但是没有用.

giu*_*ppe 5

在CakePhp 2.3中做:

$this->Security->unlockedActions= array('add_note');
Run Code Online (Sandbox Code Playgroud)