The controllers
folder should be a subfolder of your AUTOLOAD
folder. Something like this:
- autoload
|- controllers
|- base.php
|- index.php
- lib
|- base.php
- index.php
And your root index.php would look like this:
$f3=require('lib/base.php');
$f3->set('AUTOLOAD','autoload/');
$f3->route('GET /','controllers\Index->index');
PS: what happened in your example is that the controllers
folder being declared as the autoload folder, base.php
and index.php
were seen as part of the root namespace.