Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jpneey authored Jul 7, 2020
1 parent f4971e4 commit 9f3ad2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
> Simple, direct and efficient router created with just PHP and .htaccess.
## How
All requests are redirected to `index.php` with the help of the `.htaccess`.
The `model/moder.router.php` will then render the current view based on the first value of an array created from
`$_SERVER["QUERY_STRING"]` and it will render the current view if it is available inside the `view\*.php` folder.
All requests are redirected to `index.php` with the help of the `.htaccess`.<br>
The `model/moder.router.php` will then create an array based on `$_SERVER["QUERY_STRING"]`.<br>
It will render the current view(based on the first value of the array) and if it is not available inside the `view\*.php` folder, `view\404.php` will be rendered instead.

## Troubleshooting
Should something went wrong, please check if the included `.htaccess` file actually exists and `mod_rewrite` is available.
Should something went wrong, please check if the included `.htaccess` file actually exists and `mod_rewrite` is available.<br>
The `.htaccess` should also be updated accordingly if you are not using `apache` and using other webservers such as `nginx`.

## Requirements
Expand Down

0 comments on commit 9f3ad2d

Please sign in to comment.