I'm using spl_autoload in my project, but when I try the following code, it gives me this error:
Fatal error: Class 'Router\Route' not found in
//Router File
<?php
namespace Router;
class Router{
function foo(){
new Route();
}
?>
//Route File
<?php
namespace Router;
class Route{}
?>
Any help? I'm kinda new with namespaces.