correcting a few bugs

validation
Anna BOUDOUL 2 years ago
parent 19a7a10262
commit 912b14e5b3

@ -3,6 +3,8 @@
$rep=__DIR__.'/../';
$con = new Connection('mysql:host=localhost;dbname=phpproject', 'nifranco', 'achanger');
//$con = new Connection('mysql:host=localhost;dbname=dbanboudoul', 'anboudoul', 'achanger');
//$con = new Connection('mysql:host=localhost;dbname=phpproject', 'nifranco', 'achanger');
$con = new Connection('mysql:host=localhost;dbname=dbanboudoul', 'anboudoul', 'mdpMYSQL');
$TMessage = array();
?>

@ -1,7 +1,7 @@
<?php
require("model/UserModel.php");
class FrontController
class FrontCtrl
{
private UserModel $usrMdl;
private $action_User;

@ -1,8 +1,9 @@
<?php
require_once("config/config.php");
require_once("controller/FrontCtrl.php");
require("erreur.php");
require("view/erreur.php");
$fc = new FrontCtrl();
$fc = new FrontCtrl($con);
$TMessage = array();
?>

Loading…
Cancel
Save