public function viewsModifierCommentaire()
 {
     global $twig, $views;
     $pseudo = Validate::_sanitString($_POST['pseudo']);
     $content = Validate::_sanitString($_POST['content']);
     $com = new Comment("", $pseudo, $content);
     echo $twig->render($views['modifierCommViews'], array('comment' => $com, 'session' => $_SESSION, 'role' => MdlMember::role(), 'login' => MdlMember::login()));
 }
示例#2
0
 public function viewsAddArticle()
 {
     global $twig, $views;
     $titre = Validate::_sanitString($_POST['titreArticle']);
     $article = new Article($titre, "", "");
     echo $twig->render($views['AddImage'], array('article' => $article, 'session' => $_SESSION, 'role' => MdlMember::role(), 'login' => MdlMember::login()));
 }
示例#3
0
 /**
  *Renvoie la liste des personnages et affiche la vue des biographies
  */
 public function surLaSerie()
 {
     global $views, $twig;
     $listPersonnages = MdlPersonnage::listerPersonnage();
     echo $twig->render($views['personnages'], array('personnages' => $listPersonnages, 'session' => $_SESSION, 'role' => MdlMember::role(), 'login' => MdlMember::login()));
 }