__construct() { // Filter use auth except getLogin $this->beforeFilter('auth', array('except' => 'getLogin')); ! // Filter use csrf on post $this->beforeFilter('csrf', array('on' => 'post')); ! // Filter only foo,bar action $this->afterFilter('log', array('only' => array('fooAction', 'barAction'))); ! // After Filter $this->afterFilter(function() { echo "After"; }); } } ! 33