.
This commit is contained in:
parent
aec3c845e0
commit
edb6c00219
22 changed files with 941 additions and 69 deletions
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
require("../app/models/user_model.php");
|
||||
require("../app/entities/user_entity.php");
|
||||
require("models/user_model.php");
|
||||
require("entities/user_entity.php");
|
||||
require("mother_controller.php");
|
||||
|
||||
class UserCtrl{
|
||||
class UserCtrl extends MotherCtrl {
|
||||
|
||||
public function login(){
|
||||
include("../app/views/partials/header.php");
|
||||
|
||||
$strMail = $_POST['mail']??"";
|
||||
$strPwd = $_POST['pwd']??"";
|
||||
|
|
@ -40,8 +40,12 @@ class UserCtrl{
|
|||
}
|
||||
}
|
||||
}
|
||||
include("../app/views/login.php");
|
||||
include("../app/views/partials/footer.php");
|
||||
$this->_arrData['arrError'] = $arrError;
|
||||
|
||||
|
||||
|
||||
$this->_display("login");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -63,9 +67,6 @@ class UserCtrl{
|
|||
|
||||
public function signin(){
|
||||
|
||||
// Inclusion du header
|
||||
include("../app/views/partials/header.php");
|
||||
|
||||
// Entité pour réafficher les valeurs dans le formulaire
|
||||
$objUser = new User();
|
||||
|
||||
|
|
@ -138,8 +139,7 @@ class UserCtrl{
|
|||
}
|
||||
|
||||
// Affichage de la vue inscription
|
||||
include("../app/views/inscription.php");
|
||||
include("../app/views/partials/footer.php");
|
||||
$this->_display("inscription");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue