Test sur la création des modules par une commande console -> OK!

Test sur une api rest -> OK!
Test sur le deplacement d'une autre page de compte -> OK!

TODO: créé les pages de blog (sommaire,news) permettant d'afficher les fichiers md
TODO: finir créer les commandes pour l'ajout de modules
This commit is contained in:
Emmanuel ROY 2020-04-01 09:22:03 +02:00
parent 259612871a
commit fd8ca40cf8
20 changed files with 162 additions and 0 deletions

View file

@ -0,0 +1,6 @@
<?php
\MVC\Classe\Session::start();
\MVC\Classe\Session::redirectIfNotRegistered();
$templateData = array("id"=>'1587184');

View file

@ -0,0 +1,3 @@
<?php
$app = new MVC\Classe\Modular($name,'phplist',$url_params);
$templateData = array('app' => $app);

View file

@ -0,0 +1,3 @@
<?php
$app = new MVC\Classe\Modular($name,'wordpress',$url_params);
$templateData = array('app' => $app);

View file

@ -0,0 +1,5 @@
name : compte-admin
page_title : module_title
description : module_description
params : module_params

View file

@ -0,0 +1,5 @@
name : phplist
page_title : module_title
description : module_description
params : module_params

View file

@ -0,0 +1,5 @@
name : wordpress
page_title : module_title
description : module_description
params : module_params

View file

@ -0,0 +1,13 @@
@extends('body')
@section('sidebar')
@parent
@endsection
@section('content')
@if (isset($id))
{{$id}}
@else
id not exist
@endif
@endsection

View file

@ -0,0 +1 @@
{{$app->load('phplist')}}

View file

@ -0,0 +1 @@
{{$app->load('wordpress')}}

View file

@ -0,0 +1,4 @@
[April 1, 2020, 8:55 am by Firefox]
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
http11 make request

View file

@ -0,0 +1,16 @@
[April 1, 2020, 8:55 am by Firefox]
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
curl -i -k -X GET -H 'Content-Type: application/json' -d '{"myval":25}' https://www.sand-framework.infoartsmedia.org/accueil/var10/val10
[April 1, 2020, 8:55 am by Firefox]
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
curl -i -k -X POST -H 'Content-Type: application/json' -d '{"myval":25}' https://www.sand-framework.infoartsmedia.org/accueil/var10/val10
[April 1, 2020, 8:55 am by Firefox]
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
curl -i -k -X PUT -H 'Content-Type: application/json' -d '{"myval":25}' https://www.sand-framework.infoartsmedia.org/accueil/var10/val10
[April 1, 2020, 8:55 am by Firefox]
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
curl -i -k -X DELETE -H 'Content-Type: application/json' -d '{"myval":25}' https://www.sand-framework.infoartsmedia.org/accueil/var10/val10

View file

@ -0,0 +1,15 @@
[April 1, 2020, 8:55 am by Firefox]
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
[April 1, 2020, 8:55 am by Firefox]
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
[April 1, 2020, 8:55 am by Firefox]
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
[April 1, 2020, 8:55 am by Firefox]
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0

View file

@ -0,0 +1,20 @@
[April 1, 2020, 8:55 am by Firefox]
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
GET
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
GET
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
POST
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
PUT
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
DELETE

View file

@ -0,0 +1,13 @@
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
____Hello Delete:____
<pre>Array
(
[var10] => val10
)
</pre><pre>Array
(
[myval] => 25
)
</pre>

View file

@ -0,0 +1,9 @@
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
____Hello GET____
<pre>Array
(
[var10] => val10
)
</pre><pre></pre>

View file

@ -0,0 +1,16 @@
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
\AccueilHttpReponse app GET request! ( AccueilHttpReponse->get() )
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
\AccueilHttpReponse app POST request! ( AccueilHttpReponse->post() )
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
\AccueilHttpReponse app PUT request! ( AccueilHttpReponse->put() )
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
\AccueilHttpReponse app DELETE request! ( AccueilHttpReponse->delete() )

View file

@ -0,0 +1,9 @@
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
____Hello POST____
<pre>Array
(
[var10] => val10
)
</pre><pre></pre>

View file

@ -0,0 +1,13 @@
[April 1, 2020, 8:55 am by [App] Curl]
curl/7.64.0
____Hello Put____
<pre>Array
(
[var10] => val10
)
</pre><pre>Array
(
[myval] => 25
)
</pre>

View file

@ -0,0 +1,4 @@
[April 1, 2020, 8:55 am by Firefox]
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
Hello world

@ -0,0 +1 @@
Subproject commit 5ae9fb84dd769e94a3ebf68474aca0f2d296fa1f