title: Class not found using namspace in PHP
body: <p>I am using namespace in my php application, but when i load the page it show me error</p>
  
  <blockquote>
    <p>Fatal error: Uncaught Error: Class 'Route\Router' not found in >C:\xampp\htdocs\app\index.php:10 Stack trace: #0 {main} thrown in >C:\xampp\htdocs\app\index.php on line 10</p>
  </blockquote>
  
  <pre><code>        &lt;?php
  
          require_once 'routes/Router.php';
  
          use Route\Router;
  
          $request = $_SERVER['REQUEST_URI'];
          $router = new Router($request);
          $router-&gt;get('/', 'view/index');
          $router-&gt;get('post', 'view/auth/login');
  </code></pre>
  
  <p>...</p>
  
  <pre><code>        &lt;?php
  
          namespace Route;
  
          class Router
          {
              private $request;
  
              function __construct($request)
              {
                  $this-&gt;request = $request;
              }
  
              public function get($route, $file)
              {
                  $uri = trim($this-&gt;request, "/");
                  $uri = explode("/", $uri);
                  if ($uri[0] == trim($route, "/")) {
                      array_shift($uri);
                      $args = $uri;
                      require $file . '.php';
                  }
              }
          }
  </code></pre>