public function logout($root = DS) { Event::Set($this->LoggedIn, 'logout'); AppUser::UnsetCurrent(); $this->redirect($root); }