fat-free framework only working through cli
问题 I just started trying to use the fat-free framework. I don't understand what i am doing wrong here. I have the following code that i got from their site: $f3 = require('/var/tmp/fatfree-master/lib/base.php'); $f3->route('GET /', function() { echo 'Hello, world!'; } ); $f3->run(); ?> When i run the following code using the cli, like this php index.php it works fine. But when i try to go to it with a browser i get the following error: Not Found HTTP 404 (GET /index.php) I don't understand how