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