big update : session authentification guard, some exemaples and docs
This commit is contained in:
parent
eb54203916
commit
5be76d38f6
30 changed files with 163 additions and 60 deletions
|
|
@ -8,7 +8,7 @@ class DocConduit extends Conduit
|
|||
// Route('/docs')
|
||||
public function index()
|
||||
{
|
||||
|
||||
\MVC\Object\Session::createAndTestSession();
|
||||
$files = array();
|
||||
|
||||
if ($handle = opendir(DATA_PATH . '/docs')) {
|
||||
|
|
@ -36,7 +36,7 @@ class DocConduit extends Conduit
|
|||
// Route('/docs/file/{file}')
|
||||
public function readfile()
|
||||
{
|
||||
|
||||
\MVC\Object\Session::createAndTestSession();
|
||||
$markdown = file_get_contents(DATA_PATH . '/docs/' . $this->file);
|
||||
|
||||
$my_html = MarkdownExtra::defaultTransform($markdown);
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ class FooConduit extends Conduit
|
|||
// Route('/foo')
|
||||
public function index()
|
||||
{
|
||||
\MVC\Object\Session::createAndTestSession();
|
||||
echo "blob of foo";
|
||||
return $this->render('foo', array('page_title' => 'Foo', 'description' => 'FooConduit'));
|
||||
}
|
||||
|
|
@ -15,6 +16,7 @@ class FooConduit extends Conduit
|
|||
// Route('/foo/{id}')
|
||||
public function load()
|
||||
{
|
||||
\MVC\Object\Session::createAndTestSession();
|
||||
echo "load of foo";
|
||||
return $this->render('foo', array('page_title' => 'Foo', 'description' => 'FooConduit', 'id' => $this->id));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ class IndexConduit extends Conduit
|
|||
// Route('/')
|
||||
public function homepage()
|
||||
{
|
||||
\MVC\Object\Session::createAndTestSession();
|
||||
echo "IndexControlleur";
|
||||
return $this->render('index', array("templating_a"=>'blade',"templating_b"=>'twig',"templating_c"=>'edge'));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
name : admin
|
||||
page_title : Administration de l'application
|
||||
description : Administration de l'application
|
||||
engine : blade
|
||||
params : params
|
||||
|
||||
engine : blade
|
||||
authentification : yes
|
||||
|
||||
ariane : {acceuil}
|
||||
arianelink : {index}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
name : beers
|
||||
page_title : module_title
|
||||
description : module_description
|
||||
params : module_params
|
||||
|
||||
engine : blade
|
||||
authentification : yes
|
||||
|
||||
ariane : {acceuil}
|
||||
arianelink : {index}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
name : cgu
|
||||
page_title: Conditions Générale d'Utilisation de l'application
|
||||
description : abracadabla
|
||||
|
||||
engine : blade
|
||||
params : params
|
||||
authentification : yes
|
||||
|
||||
ariane : {acceuil}
|
||||
arianelink : {index}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
name : donate
|
||||
page_title : Be a sponsor
|
||||
description : Page permettant de devenir un sponsor du framework SAND
|
||||
params : module_params
|
||||
|
||||
engine : blade
|
||||
authentification : yes
|
||||
|
||||
ariane : {acceuil}
|
||||
arianelink : {index}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
name : error-access-denied
|
||||
page_title : Page 403 (Accès restreint) de l'application
|
||||
description : Page 403 (Accès restreint) de l'application
|
||||
params : module_params
|
||||
|
||||
engine : blade
|
||||
authentification : no
|
||||
|
||||
ariane : {acceuil}
|
||||
arianelink : {index}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
name : error
|
||||
page_title: Page 404 (Page Non Trouvé) de l'application
|
||||
description : Page 404 (Page Non Trouvé) de l'application
|
||||
params : params
|
||||
|
||||
engine : blade
|
||||
authentification : no
|
||||
|
||||
ariane : {acceuil}
|
||||
arianelink : {index}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
name : gitlist
|
||||
page_title : Dépot Git
|
||||
description : Le dépot de travail du framework
|
||||
engine: blade
|
||||
|
||||
engine : blade
|
||||
authentification : yes
|
||||
|
||||
ariane : {acceuil, dépot git du framework}
|
||||
arianelink : {index, gitlist}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
name : index
|
||||
page_title : Accueil de l'application
|
||||
description : zatou stra bracadabla
|
||||
|
||||
engine : blade
|
||||
authentification : yes
|
||||
|
||||
ariane : {acceuil}
|
||||
arianelink : {index}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
name : policy
|
||||
page_title: Politique de Confidentialité de l'application
|
||||
description : abracadabla
|
||||
|
||||
engine : blade
|
||||
params : params
|
||||
authentification : yes
|
||||
|
||||
ariane : {acceuil}
|
||||
arianelink : {index}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
<div id="breadcrumbs" class="fullwidth">
|
||||
<div class="container">
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<ol class="breadcrumb-sand">
|
||||
@foreach($ariane as $value)
|
||||
@if($value == end($ariane))
|
||||
<li class="breadcrumb-item active" aria-current="page">{{$value}}</li>
|
||||
|
|
|
|||
|
|
@ -45,14 +45,16 @@
|
|||
<script src="{{ \MVC\Classe\Url::asset_rewrite('assets/bootstrap-5.0.0-beta1-dist/js/bootstrap.min.js')}}"></script>
|
||||
<script src="{{ \MVC\Classe\Url::asset_rewrite('assets/js/custom.js')}}"></script>
|
||||
|
||||
/*
|
||||
SCRIPT JS permettant de ne valider qu'une seule fois un formulaire
|
||||
ATTENTION tous les formulaires sont affecté
|
||||
Lors d'une validation bootstrap personnalisé veuillez utilisé
|
||||
la class do-resubmit sur le formulaire afin de permettre
|
||||
l'activation supplémentaire du bouton.
|
||||
*/
|
||||
<script>
|
||||
|
||||
/*
|
||||
SCRIPT JS permettant de ne valider qu'une seule fois un formulaire
|
||||
ATTENTION tous les formulaires sont affecté
|
||||
Lors d'une validation bootstrap personnalisé veuillez utilisé
|
||||
la class do-resubmit sur le formulaire afin de permettre
|
||||
l'activation supplémentaire du bouton.
|
||||
*/
|
||||
|
||||
window.onload = function() {
|
||||
let PreventAllforms = document.querySelectorAll("form");
|
||||
Array.prototype.slice.call(PreventAllforms)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue