connection view

develop
Allan POINT 3 years ago
parent 7d791a728e
commit 92e6b09aa4

@ -0,0 +1,17 @@
<?php
require_once('controleur/gest.php');
class FrontControler {
private $actions = array(
"Gest" => ["wantToConnect"];
);
function start() {
session_start();
$action = $_REQUEST['action'];
if(in_array($action, $this->action['Gest']){
$controleur = new GestControler();
}
}
}

@ -4,6 +4,12 @@ class GestControler {
function __construct() {
try{
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : "default";
switch($action){
case "wantToConnect":
default:
require("vues/connect.php");
break;
}
}catch(Exception $e){

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<?php
require_once('controleur/FrontControler.php');
$frontControler = new FrontControler();
$frontControler->start();
?>
</html>

@ -0,0 +1,9 @@
<?php
<body>
<form>
<input id="usernameFrom" type="text" placeholder="Pseudo"/>
<input id="passwordFrom" type="password"/>
<input value="OK" type="submit"/>
</form>
</body>
Loading…
Cancel
Save