<?php session_start(); //No incluyo el chequeo de sesion porque este php lo llama el resto, que ya lo incluye include_once "../classes/notificacion.php"; $n = new notificacion(); $n->setIdJ2($_SESSION['id']); $n->todasXJ(); $noti = $n->notSeenFriendNotifications(); //Incluyo la vista include_once "../view/botonera.php";