title: Implementing namespaces in fatfree framework
body: <p>I am trying to use namespaces in fatfree framework, but somehow its not able to find the class following is my setup </p>
  
  <p>routes.ini</p>
  
  <pre><code>[routes]
  GET /=Src\Controllers\Index-&gt;index
  </code></pre>
  
  <p>index.php</p>
  
  <pre><code>namespace Src\Controllers;
  
  class Index {
      function index($f3) {
          $f3-&gt;set('name','world');
          echo View::instance()-&gt;render('template.htm');
      }
  }
  </code></pre>
  
  <p>Global index.php</p>
  
  <pre><code>// Retrieve instance of the framework
  $f3=require('lib/base.php');
  
  // Initialize CMS
  $f3-&gt;config('config/config.ini');
  
  // Define routes
  $f3-&gt;config('config/routes.ini');
  
  // Execute application
  $f3-&gt;run();
  </code></pre>
  
  <p>UPDATE:</p>
  
  <blockquote>
    <p>Error:</p>
    
    <p>Not Found</p>
    
    <p>HTTP 404 (GET /)</p>
    
    <p>• index.php:13 Base->run()</p>
  </blockquote>
  
  <p>UPDATE 2:</p>
  
  <p>config.ini</p>
  
  <pre><code>[globals]
  ; Where the framework autoloader will look for app files
  AUTOLOAD=src/controllers/
  ; Remove next line (if you ever plan to put this app in production)
  DEBUG=3
  ; Where errors are logged
  LOGS=tmp/
  ; Our custom error handler, so we also get a pretty page for our users
  ;ONERROR=""
  ; Where the framework will look for templates and related HTML-support files
  UI=views/
  ; Where uploads will be saved
  UPLOADS=assets/
  </code></pre>
  
  <p>I'm not sure what's going wrong. </p>
  
  <p>Thanks In advance.</p>