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