steampixel / simplePHPRouter

This is a simple and small single class PHP router that can handel the whole url routing for your project.
MIT License
406 stars 117 forks source link

Some ToDos are still open #33

Closed steampixel closed 4 years ago

steampixel commented 4 years ago

Hi @mzaini30 @ImMaax @sanderaido,

inside the index.php file there are some ToDos open. Does any of you have an idea what it was about?

// Simple test route that simulates static html file
// TODO: Fix this for some web servers
Route::add('/blog/([a-z-0-9-]*)', function($slug) {
  navi();
  include('include-example.php');
});

// This example shows how to include files and how to push data to them
// TODO: Fix this for some web servers
Route::add('/test.html', function() {
  navi();
  echo 'Hello from test.html';
});

I think the second todo is my fault. Because i stupidly copied and pasted that block from the above one.

steampixel commented 4 years ago

Oops sorry. My fault. For some reason I copied some weird comment into this file.