diff --git a/Controller/Conexion/Conexion.php b/Controller/Conexion/Conexion.php index a18b1b8..9fde55c 100644 --- a/Controller/Conexion/Conexion.php +++ b/Controller/Conexion/Conexion.php @@ -6,12 +6,12 @@ class Conexion { - static $conexion; + public static $conexion; public function conectar() { try { - self::$conexion = new mysqli(Constantes::$host, Constantes::$user, Constantes::$pass, Constantes::$database, Constantes::$port); + self::$conexion = new mysqli(Constantes::$DB_host, Constantes::$DB_user, Constantes::$DB_pass, Constantes::$DB_database, Constantes::$DB_port); } catch (Exception $e) { die(); }