public function actionLogout() { LoginForm::checkLogin(); LoginForm::logout(); $this->redirect('login'); }