starlays/My-library — pull request #2 by flavius (2012-09-08 18:12:46+00:00)
Title: move routing algorithm out of index.php, which should remain minimal

Also, there should be only `index.php` in your public DocumentRoot, and static assets, everything else should be in `src/`.

Use chdir(__ROOT__) in index to make it more pleasent to work with paths.