We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d3bfa8 commit 2a64d58Copy full SHA for 2a64d58
fatfree-3.5/app/controllers/Hello.php
@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+class Hello
4
+{
5
+ public function index()
6
+ {
7
+ echo 'Hello World!';
8
+ }
9
+}
fatfree-3.5/index.php
@@ -2,12 +2,11 @@
require 'vendor/autoload.php';
-$app = \Base::instance();
+$f3 = \Base::instance();
+$f3->set('AUTOLOAD','app/controllers/');
-$app->route('GET /index.php/hello/index', function() {
- echo 'Hello World!';
-});
+$f3->route('GET /index.php/hello/index', 'Hello->index');
10
11
-$app->run();
+$f3->run();
12
13
require $_SERVER['DOCUMENT_ROOT'].'/php-framework-benchmark/libs/output_data.php';
0 commit comments