use*_*499 6 security cakephp cakephp-2.1
是否可以在视图中仅为1个特定表单转换所有CakePHP安全功能?所以我没有获得该形式的任何隐藏字段(标记).
谢谢,
巴特
您可以通过以下方式禁用该操作:
public function beforeFilter() {
parent::beforeFilter();
if ($this->request->params['action'] == 'action') {
$this->Security->validatePost = false;
}
}
Run Code Online (Sandbox Code Playgroud)