public function actionLogout() { $identity = new Identity(); $identity->logout(); $this->redirect('/'); }