Skip to content

Commit 9593faf

Browse files
committed
Update README.md and fix some other mistakes
1 parent bd2948c commit 9593faf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ object.
2727
`use MinusFour\Router\Router;`
2828

2929
Once you are finished done loading objects into the RouteContainer, the Router will pick up the route object and call
30-
the action according to the supplied method. This object is also responsible for building a path for a given route,
31-
which at the moment is unfinished.
30+
the action according to the supplied method. This object is also responsible for building a path for a given route.
3231

3332
# How to use
3433

@@ -60,7 +59,7 @@ $routeContainer->addRoute($route);
6059
//Loads the route object into the tree.
6160
```
6261

63-
Finall you'll initialize the Router Object with `$routeContainer` and at that point is up to you to supply a path
62+
Finally you'll initialize the Router Object with `$routeContainer` and at that point is up to you to supply a path
6463
to match a Route object.
6564

6665
```php
@@ -71,6 +70,8 @@ $route->dispatch($_SERVER['REQUEST_METHOD'], strtok($_SERVER['REQUEST_URI'], '?'
7170
//Will use GET as the Method and /home for path.
7271
```
7372

73+
There's a .htaccess (for apache users) in the root of the project that can help you out rewriting urls to your router.
74+
7475
# Regular Expresions in Routes
7576

7677
It is possible to use regular expressions in some parts of the route. For example:

0 commit comments

Comments
 (0)