I have this error:
PHP Notice: Undefined index: user in /home/clubbrit/public_html/socios/administrador/header.php on line 6
PHP Notice: Undefined variable: nombre in /home/clubbrit/public_html/socios/administrador/header.php on line 67
PHP Notice: Undefined variable: cve_usuario in /home/clubbrit/public_html/socios/administrador/header.php on line 77
This is the code I have in the header:
$usuario=$_SESSION['user'];
$view->Sociousr=Sociousr::getUsuarioPorClave($usuario);
foreach ($view->Sociousr as $Usuario):
$nombre = $Usuario["username"];
$cve_usuario = $Usuario["cve_usuario"];
endforeach;