public function __constructor() { parent::construct(); $this->beforeFilter('csrf', array('on' => 'post')); }