FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added non english routes to example · vivekjava/simplePHPRouter@7e239af · GitHub

Commit 7e239af

Browse files
SteamPixel
committed
Added non english routes to example
1 parent 542d433 commit 7e239af

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎index.php‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ function navi() {
2727
<li><a href="'.BASEPATH.'test.html">test.html</a></li>
2828
<li><a href="'.BASEPATH.'blog/how-to-use-include-example">How to push data to included files</a></li>
2929
<li><a href="'.BASEPATH.'phpinfo">PHP Info</a></li>
30+
<li><a href="'.BASEPATH.'äöü">Non english route: german</a></li>
31+
<li><a href="'.BASEPATH.'الرقص-العربي">Non english route: arabic</a></li>
3032
<li><a href="'.BASEPATH.'aTrailingSlashDoesNotMatter">aTrailingSlashDoesNotMatter</a></li>
3133
<li><a href="'.BASEPATH.'aTrailingSlashDoesNotMatter/">aTrailingSlashDoesNotMatter/</a></li>
3234
<li><a href="'.BASEPATH.'theCaseDoesNotMatter">theCaseDoesNotMatter</a></li>
@@ -120,9 +122,16 @@ function navi() {
120122
echo 'This is the second match (This route should only work in multi match mode) <br>';
121123
});
122124

123-
// Route with non english letters
125+
// Route with non english letters: german example
124126
Route::add('/äöü', function() {
125-
echo 'Non english letters should work too <br>';
127+
navi();
128+
echo 'German example. Non english letters should work too <br>';
129+
});
130+
131+
// Route with non english letters: arabic example
132+
Route::add('/الرقص-العربي', function() {
133+
navi();
134+
echo 'Arabic example. Non english letters should work too <br>';
126135
});
127136

128137
// Trailing slash example

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL