i get this error from my index page that is the only view page in the Model View Controller(MVC) project i have and with the code below in my index page
<?php
define("ROOT", dirname(__DIR__) . DIRECTORY_SEPARATOR);
define("APP",ROOT . "app" . DIRECTORY_SEPARATOR);
define("VIEW", ROOT . "app". DIRECTORY_SEPARATOR . "view" . DIRECTORY_SEPARATOR);
define("MODEL",ROOT . "app" . DIRECTORY_SEPARATOR . "model" . DIRECTORY_SEPARATOR);
define("DATA", ROOT . "app" . DIRECTORY_SEPARATOR . "data" . DIRECTORY_SEPARATOR);
define("CORE" , ROOT . "app" . DIRECTORY_SEPARATOR . "core" . DIRECTORY_SEPARATOR);
define("CONTROLLER", ROOT . "app" .DIRECTORY_SEPARATOR . "controller" . DIRECTORY_SEPARATOR);
$modules = [ROOT,APP,CORE,CONTROLLER,DATA];
$path = set_include_path(get_include_path() . PATH_SEPARATOR .implode(PATH_SEPARATOR,$modules));
spl_autoload_register("spl_autoload", false);

If you only want to use the default
spl_autoload()implementation, I would suggest passingnullas the first argument as per PHP documentation: https://www.php.net/manual/en/function.spl-autoload-register.php#refsect1-function.spl-autoload-register-parameters