diff --git a/init.php b/init.php index 7eef973..f155a4c 100644 --- a/init.php +++ b/init.php @@ -845,7 +845,7 @@ use MVC\Core\Controller; use MVC\Classes\Api; class ApiController extends Controller { - public static function (){ + public static function get(){ return Api::jsonResponse([ 'data' => 'DummyData', ]); @@ -913,15 +913,11 @@ class TestController extends Controller { } PHP; -// --- VIEWS --- -$files['WEBROOT/src/MVC/View/home.php'] = "
Willkommen in deinem neuen MVC-System mit integriertem Header.
"; -$files['WEBROOT/src/MVC/View/test1.php'] = "= \$msg ?>
"; -$files['WEBROOT/src/MVC/View/test2.php'] = "Willkommen in deinem neuen MVC-System mit integriertem Header.
"; +$files['WEBROOT/src/MVC/View/test1.php'] = "= \$msg ?>
"; +$files['WEBROOT/src/MVC/View/test2.php'] = "