From 6bd61a7a04962bbf730fd10b90a09f2cd7faa4b9 Mon Sep 17 00:00:00 2001
From: Danny van Kooten
Date: Mon, 9 Oct 2023 20:14:26 +0200
Subject: [PATCH] fix internal links
---
usage/install.html | 8 ++++----
usage/mapping-routes.html | 8 ++++----
usage/matching-requests.html | 16 ++++++++--------
usage/processing-requests.html | 8 ++++----
usage/rewrite-requests.html | 8 ++++----
5 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/usage/install.html b/usage/install.html
index 6d1b948..f9dc55a 100644
--- a/usage/install.html
+++ b/usage/install.html
@@ -4,7 +4,7 @@
---
- Using AltoRouter
+ Using AltoRouter
Installation
@@ -37,7 +37,7 @@ Install AltoRouter using Composer
require 'vendor/autoload.php';
{% endhighlight %}
-You are now ready to use the AltoRouter
class. Rewrite all requests to your application file and start mapping your routes.
+You are now ready to use the AltoRouter
class. Rewrite all requests to your application file and start mapping your routes.
Install AltoRouter manually
Just download the AltoRouter class and require it in your application file.
@@ -47,6 +47,6 @@ Install AltoRouter manually
{% endhighlight %}
- Rewrite requests »
+ Rewrite requests »
-
\ No newline at end of file
+
diff --git a/usage/mapping-routes.html b/usage/mapping-routes.html
index 741b755..cbe3fe9 100644
--- a/usage/mapping-routes.html
+++ b/usage/mapping-routes.html
@@ -3,11 +3,11 @@
layout: default
---
- Using AltoRouter
+ Using AltoRouter
Mapping Routes
-By now, you should have rewritten al requests to be handled by a single file in which you created an AltoRouter instance.
+By now, you should have rewritten al requests to be handled by a single file in which you created an AltoRouter instance.
To map your routes, use the map()
method. The following example maps all GET /
requests.
{% highlight php startinline %}
@@ -129,7 +129,7 @@ Match Types
Once your routes are all mapped you can start matching requests and continue processing the request.
- « Rewriting requests
- Matching requests »
+ « Rewriting requests
+ Matching requests »
diff --git a/usage/matching-requests.html b/usage/matching-requests.html
index 1c6695d..e2003c9 100644
--- a/usage/matching-requests.html
+++ b/usage/matching-requests.html
@@ -3,7 +3,7 @@
layout: default
---
- Using AltoRouter
+ Using AltoRouter
Matching Requests
@@ -40,10 +40,10 @@
$match = $router->match();
/*
-array(3) {
- ["target"] => object(Closure)#2 (0) { }
- ["params"] => array(0) { }
- ["name"] => 'home'
+array(3) {
+ ["target"] => object(Closure)#2 (0) { }
+ ["params"] => array(0) { }
+ ["name"] => 'home'
}
*/
{% endhighlight %}
@@ -51,7 +51,7 @@
AltoRouter does not process the request for you, you are free to use the method you prefer. Here is a simplified example how to process requests using closures though.
- « Mapping routes
- Processing requests »
+ « Mapping routes
+ Processing requests »
-
\ No newline at end of file
+
diff --git a/usage/processing-requests.html b/usage/processing-requests.html
index 48c6ab7..97077a3 100644
--- a/usage/processing-requests.html
+++ b/usage/processing-requests.html
@@ -3,7 +3,7 @@
layout: default
---
- Using AltoRouter
+ Using AltoRouter
Processing Requests
@@ -27,7 +27,7 @@
// call closure or throw 404 status
if( is_array($match) && is_callable( $match['target'] ) ) {
- call_user_func_array( $match['target'], $match['params'] );
+ call_user_func_array( $match['target'], $match['params'] );
} else {
// no route was matched
header( $_SERVER["SERVER_PROTOCOL"] . ' 404 Not Found');
@@ -35,6 +35,6 @@
{% endhighlight %}
- « Matching requests
+ « Matching requests
-
\ No newline at end of file
+
diff --git a/usage/rewrite-requests.html b/usage/rewrite-requests.html
index 7729e4c..64bc3ed 100644
--- a/usage/rewrite-requests.html
+++ b/usage/rewrite-requests.html
@@ -3,7 +3,7 @@
layout: default
---
- Using AltoRouter
+ Using AltoRouter
Rewrite all requests to AltoRouter
@@ -34,10 +34,10 @@ Nginx nginx.conf
$router->setBasePath('/alto-app/');
{% endhighlight %}
-You are now ready to start mapping your routes.
+You are now ready to start mapping your routes.
- « Installing AltoRouter
- Mapping routes »
+ « Installing AltoRouter
+ Mapping routes »