0
It is more recommended to use the function below for autoload. The names in file_exists will depend on the folders that your class files are in. I only considered your classes folder.
spl_autoload_register(function ($class){
if(file_exists('classes/'.$class.'.php')) {
require_once 'classses/'.$class.'.php';
}
});
I hope I’ve helped.
Reference: http://php.net/manual/en/language.oop5.autoload.php
And the folder
modais
?– MagicHat
I am not using the modal folder in the list fileMotos.php. The intention is just the top.php and menu.php
– Joao Torres