Skip to content

Commit 9df90d2

Browse files
authored
Update README.md
1 parent d7d9352 commit 9df90d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ create an .htaccess file in the root of your project and fill it with the code b
2424
RewriteCond %{REQUEST_FILENAME} !-f
2525
RewriteRule ^ index.php [L]
2626
</IfModule>
27-
````
27+
```
2828
2929
<b>Step 2 - require szenis/routing</b><br/>
3030
In your terminal execute: ``composer require szenis/routing``
@@ -40,15 +40,15 @@ Add
4040
```php
4141
use Szenis\Router;
4242
use Szenis\RouteResolver;
43-
````
43+
```
4444
to your index.php
4545
4646
<b>Optional</b><br/>
4747
For debuging purpose add the following to your index.php
4848
```php
4949
error_reporting(E_ALL);
5050
ini_set('display_errors', 1);
51-
````
51+
```
5252
5353
<h2>Usage</h2>
5454
For the sake of simplicity consider this code to be inside index.php
@@ -140,7 +140,7 @@ try {
140140
// it is not necessary to catch this exception as this exception should never occur in production
141141
die($e->getMessage());
142142
}
143-
````
143+
```
144144

145145
<h2>Wildcard options</h2>
146146
The following options exist
@@ -174,7 +174,7 @@ $router->add('/hello/{a:name}/{?:lastname}', 'GET', function($name, $lastname =
174174
// check if lastname is provided
175175
// if ($lastname) {...}
176176
})
177-
````
177+
```
178178

179179
<h2>Changelog</h2>
180180

0 commit comments

Comments
 (0)