From 7a3d28bacc6294ef55d8e9c58bcbf8f54b158ecc Mon Sep 17 00:00:00 2001 From: SteamPixel Date: Tue, 14 Jan 2020 12:03:03 +0100 Subject: [PATCH] Corrected namespace in folder structure --- README.md | 2 +- index.php | 2 +- src/{ => Steampixel}/Route.php | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{ => Steampixel}/Route.php (100%) diff --git a/README.md b/README.md index de005a7..673fba1 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The third argument will match the request method. The default method is 'get'. ## Simple example: ```php use Steampixel\Route; -include 'Route.php'; +include 'src\Steampixel\Route.php'; Route::add('/user/([0-9]*)/edit', function($id) { echo 'Edit user with id '.$id.'
'; diff --git a/index.php b/index.php index 97b5a4a..87c638d 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ use Steampixel\Route; // Include router class -include 'src/Route.php'; +include 'src/Steampixel/Route.php'; function navi() { echo <<