在Fat Free中使用命名空间的路由问题

My project worked fine until I decided to implement namespaces. Since then I've been having some problems. I familiarized myself with this post that had similar issues, but no luck. I also read the documentation about namespaces but it didn't help either.

My file structure looks like:

-fatfree
  -index.php
  -app
    -config.ini
    -routes.ini
    -controllers
      -Controller.php
      -DeviceController.php
    -models
      -*.php
    -views
      -*.html
  -lib
    base.php
    ...

My routes.ini file looks like:

[routes]

GET @devices: /devices = \Controllers\DeviceController->devices

My DeviceController class looks like:

<?php

namespace Controllers;

class DeviceController extends \Controller
{
    public function devices($f3)
    {
        ...
    }

    ...
}

My index.php file looks like:

<?php

$f3 = require("lib/base.php");
$f3->config("app/config.ini");
$f3->config("app/routes.ini");

new Session();

$f3->run();

When I navigate to the devices page I get the following error:

Not Found

HTTP 404 (GET /devices)

[/fatfree/lib/base.php:1462] Base->error(404) [/fatfree/index.php:13] Base->run()

Have you tried renaming your controller files to controller.php and devicecontroller.php?