public function actionLogout($params = []) { if (Student::isAuthorized()) { Student::logout(); Router::redirect('/'); } else { Router::error('403'); } }