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();
|
||||
}
|
||||
}
|
||||
}
|
@ -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…
Reference in new issue