public function beforeFilter(){
$this->Security->blackHoleCallback = 'blackhole';
parent::beforeFilter();
}
public function blackhole($type){
switch($type){
case 'csrf' :
$this->Session->setFlash(__('不正な送信が行われました'));
$this->redirect(array('controller' => 'topics', 'action' => $this->action));
break;
default :
$this->redirect(array('controller' => 'topics', 'action' => 'index'));
break;
}
}