当我单击“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();
}