「Registreer je」ボタンをクリックしたときに、Controller.php というクラスで関数登録者を呼び出すにはどうすればよいですか?`
これは私の Index.php ファイルの一部です。また、「require_once('Controller.php');」があります。
<form method="POST" action="<?php echo Controller::registreer()?>">
<button type="submit" class="btn btn-primary">Registreer je</button>
</form>`
Controller.phpの私の関数:
public static function registreer(){
header("Location:registreer.php");
exit();
}