$_SESSION['usuario_id'], 'nome' => $_SESSION['usuario_nome'] ?? '', 'email' => $_SESSION['usuario_email'] ?? '', 'perfil' => $_SESSION['usuario_perfil'] ?? '' ]; /* * Carrega a View do dashboard. * * A View recebe os dados através da variável * $usuario e fica responsável somente pela * apresentação das informações. */ require __DIR__ . '/../Views/dashboard/index.php'; } }