处理我的ajax调用安全组件时出现了问题。
在cakephp 2.x中,你如何处理这个问题?
Appcontroller.php
public function beforeFilter() {
$this->Security->blackHoleCallback = 'blackhole';
if ($this->request->is('ajax')) {
$this->Security->validatePost = false;
}
似乎不起作用...