Skip to content

Commit

Permalink
fix vars of conectar()
Browse files Browse the repository at this point in the history
  • Loading branch information
bhamidou committed Oct 17, 2023
1 parent 11581d3 commit 27b62ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Controller/Conexion/Conexion.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 27b62ba

Please sign in to comment.