-
Notifications
You must be signed in to change notification settings - Fork 0
/
rooter.php
55 lines (42 loc) · 1.55 KB
/
rooter.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
//DEBUT DU ROOTER
$rooter = [
// action => repertoire // Petite description
//Home
"home" => "home/", // Page d'accueil
"about" => "home/", // Page à propos
//Appel
"editappel" => "appel/",
//Classes
"addclasses" => "classes/",
"editclasses" => "classes/",
"delclasses" => "classes/",
"allclasses" => "classes/",
"formaddclasses" => "classes/",
"formeditclasses" => "classes/",
//Eleves
"addeleves" => "eleves/",
"editeleves" => "eleves/",
"deleleves" => "eleves/",
"alleleves" => "eleves/",
"formaddeleves" => "eleves/",
"formediteleves" => "eleves/",
//VACANCES
"allvacances" => "vacances/",
"importvacances" => "vacances/",
//Error
"404" => "error/", //Page Erreur 404
//Settings
"settings" => "settings/",
"editzonevacance" => "settings/",
"savimp" => "Import/",
//FIN DU ROOTER
"" => ""
];
/* SYNTAXE DE NOMMAGE
*
* Si formulaire -> "form" + action + tableBDD (exemple : formaddtab)
* Pour les actions sans vue utilisateur : action + tableBDD (exemple editkiosque)
* Pour les pages de liste je met en general : "all" + tableBDD (exemple alladmin)
*
* */