You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SAE4.01_FORMULAIRE/Source/Controller/ControllerCandidate.php

22 lines
358 B

<?php
namespace Controller;
use Model\ModelCandidate;
class ControllerCandidate
{
public function goToForm(): void
{
global $rep, $views;
$html = (new ModelCandidate())->getForm();
require_once($rep.$views['form']);
}
public function submitForm(): void
{
(new ModelCandidate())->submitForm();
}
}