From 3b381dd4950dcdc96d34e6fec14d878ca81cd99f Mon Sep 17 00:00:00 2001 From: SteamPixel Date: Thu, 10 Sep 2015 13:48:58 +0200 Subject: [PATCH] Create README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..8ceddaa --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +This is a simple example that shows how a simple PHP routing system. +This is not for production use but for people who want to understand how such a system works. +Take a look in the index.php file. You can use the Route::add method to add a new route to your project. +The first argument takes the URL. +You can use Regexp in there to parse variables directly out of the URL und push them to the handler method. +The handler is the second argument of the add method. +Dont forget to set the basepath in index.php and .htaccess file.