parent
cecf746149
commit
2920ef7418
@ -1,10 +1,23 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace Controleur;
|
namespace Controleur;
|
||||||
|
use Model\CommentaryModel;
|
||||||
|
|
||||||
|
|
||||||
Class UserControler{
|
Class UserControler{
|
||||||
|
|
||||||
|
private CommentaryModel $cMod;
|
||||||
|
|
||||||
|
public function __construct(){
|
||||||
|
global $co;
|
||||||
|
$this->cMod = new CommentaryModel(new CommentaryGateway($co));
|
||||||
|
}
|
||||||
|
|
||||||
public function quiz(){
|
public function quiz(){
|
||||||
global $vues;
|
global $vues;
|
||||||
require_once $vues['quiz'];
|
require_once $vues['quiz'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function addComment(){
|
||||||
|
echo $_POST['content'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue