book
include
--lib
--db.php
--input.php(static methods)
--config
--config.php
--file.php
index.php
this my folder structure.THe config.php has spl_autoload_register.
spl_autoload_register(function ($class) {
if (file_exists("lib/{$class}.php")) {
require_once "lib/{$class}.php";
}else{
require_once "include/lib/{$class}.php";
}
});
i can access classes everywhere from project.but nont from book folder.I used namespace also.its not work for static method.