logout()) return $this->request->redirect('login'); else $this->template->error = "Ошибка выхода пользователя."; } }