Ejemplo n.º 1
0
 public function load404()
 {
     $vue = new Vue("404", "Accueil", ['404.css']);
     $vue->loadbackoffice(['error' => $error, 'succes' => $succes]);
 }
Ejemplo n.º 2
0
 public function loadBackOfficeAide()
 {
     $succes = "";
     $error = "";
     if (!empty($_POST)) {
         if (isset($_POST['addQuest'])) {
             $verification = new Verification($_POST);
             $verification->notEmpty('section', "Veuillez compléter le champ section.");
             $verification->notEmpty('question', "Veuillez informer une question.");
             $verification->notEmpty('reponse', "Ne voulez vous pas répondre à la question?");
             $error = $verification->error;
             if ($verification->isValid()) {
                 if (empty($error)) {
                     $this->admin->addQuest();
                 }
             }
         }
         if (isset($_POST['delete'])) {
             $this->admin->deleteQuest();
         }
     }
     $aide = $this->accueil->getAide();
     $vue = new Vue("BackOfficeAide", "Admin", ['font-awesome.css', 'admin.css']);
     $vue->loadbackoffice(['aide' => $aide, 'error' => $error]);
 }