I am creating an MVC PHP framework, and I have some problems with the autoload of my classes, which I think may be lower than my file structure.
Firstly, here is my file structure:

Im testing developing in the local Xampp server environment, so I have private and public folders. Ultimately, on a real server, private folders will be located in the root of the server, and shared folders will be in the public_html directory.
Is my file structure correct? In a private, frontend folder, I have all my different modules in directories that have an inturn controller, a model, viewing files that contain the necessary files for each module.
I have created this autoloader so far:
require_once('router.class.php');
require_once('config.php');
spl_autoload_register(null, false);
spl_autoload_extensions('.class.php');
function autoloader_core($class){
$filename = strtolower($class) . '.class.php';
if(!file_exists($filename)){
echo $filename . " not found";
}
include $filename;
}
function autoloader_app($class){
$filename = strtolower($class) . '.class.php';
$file = 'C:\xampp\htdocs\simplebids\simplebidsprivate\app/' . $filename;
if(!file_exists($file)){
echo $file . " not found";
}
include $file;
}
spl_autoload_register('autoloader_core');
spl_autoload_register('autoloader_app');
$router = new test;
$router->say_hello();
lib- > core, , , test.class.php lib- > core, , , , , , "autoloader_app".
, , echo say_hello() .
, , , , print.
, ?
, frontend, , , // ? ? , ?