Skip to content

Commit

Permalink
fix internal links
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Oct 9, 2023
1 parent 034b845 commit 6bd61a7
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions usage/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---

<h1>
<small>Using AltoRouter</small>
<small>Using AltoRouter</small>
Installation
</h1>

Expand Down Expand Up @@ -37,7 +37,7 @@ <h2>Install AltoRouter using Composer</h2>
require 'vendor/autoload.php';
{% endhighlight %}

<p>You are now ready to use the <code>AltoRouter</code> class. <a href="/usage/rewrite-requests.html">Rewrite all requests to your application file</a> and start <a href="/usage/mapping-routes.html">mapping your routes</a>. </p>
<p>You are now ready to use the <code>AltoRouter</code> class. <a href="{{ '/usage/rewrite-requests.html' | relative_url }}">Rewrite all requests to your application file</a> and start <a href="/usage/mapping-routes.html">mapping your routes</a>. </p>

<h2 class="subtitle">Install AltoRouter manually</h2>
<p>Just <a href="https://github.com/dannyvankooten/AltoRouter/zipball/master">download the AltoRouter class</a> and require it in your application file.</p>
Expand All @@ -47,6 +47,6 @@ <h2 class="subtitle">Install AltoRouter manually</h2>
{% endhighlight %}

<p>
<a style="float:right;" href="/usage/rewrite-requests.html">Rewrite requests &raquo;</a>
<a style="float:right;" href="{{ '/usage/rewrite-requests.html' | relative_url }}">Rewrite requests &raquo;</a>
<br style="clear:both;">
</p>
</p>
8 changes: 4 additions & 4 deletions usage/mapping-routes.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
layout: default
---
<h1>
<small>Using AltoRouter</small>
<small>Using AltoRouter</small>
Mapping Routes
</h1>

<p>By now, you should have <a href="/usage/rewrite-requests.html">rewritten al requests to be handled by a single file in which you created an AltoRouter instance.</a></p>
<p>By now, you should have <a href="{{ '/usage/rewrite-requests.html' | relative_url }}">rewritten al requests to be handled by a single file in which you created an AltoRouter instance.</a></p>
<p>To map your routes, use the <code>map()</code> method. The following example maps all <code>GET /</code> requests.</p>

{% highlight php startinline %}
Expand Down Expand Up @@ -129,7 +129,7 @@ <h2>Match Types</h2>
<p>Once your routes are all mapped you can start matching requests and continue processing the request.</p>

<p>
<a style="float:left;" href="/usage/rewrite-requests.html">&laquo; Rewriting requests</a>
<a style="float:right;" href="/usage/matching-requests.html">Matching requests &raquo;</a>
<a style="float:left;" href="{{ '/usage/rewrite-requests.html' | relative_url }}">&laquo; Rewriting requests</a>
<a style="float:right;" href="{{ '/usage/matching-requests.html' | relative_url }}">Matching requests &raquo;</a>
<br style="clear:both;">
</p>
16 changes: 8 additions & 8 deletions usage/matching-requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
layout: default
---
<h1>
<small>Using AltoRouter</small>
<small>Using AltoRouter</small>
Matching Requests
</h1>

Expand Down Expand Up @@ -40,18 +40,18 @@ <h1>
$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 %}

<p>AltoRouter does not process the request for you, you are free to use the method you prefer. Here is a simplified example <a href="/usage/processing-requests.html">how to process requests using closures</a> though.</p>

<p>
<a style="float:left;" href="/usage/mapping-routes.html">&laquo; Mapping routes</a>
<a style="float:right;" href="/usage/processing-requests.html">Processing requests &raquo;</a>
<a style="float:left;" href="{{ '/usage/mapping-routes.html' | relative_url }}">&laquo; Mapping routes</a>
<a style="float:right;" href="{{ '/usage/processing-requests.html' | relative_url }}">Processing requests &raquo;</a>
<br style="clear:both;">
</p>
</p>
8 changes: 4 additions & 4 deletions usage/processing-requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
layout: default
---
<h1>
<small>Using AltoRouter</small>
<small>Using AltoRouter</small>
Processing Requests
</h1>

Expand All @@ -27,14 +27,14 @@ <h1>

// 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');
}
{% endhighlight %}

<p>
<a style="float:left;" href="/usage/matching-requests.html">&laquo; Matching requests</a>
<a style="float:left;" href="{{ '/usage/matching-requests.html' | relative_url }}">&laquo; Matching requests</a>
<br style="clear:both;">
</p>
</p>
8 changes: 4 additions & 4 deletions usage/rewrite-requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
layout: default
---
<h1>
<small>Using AltoRouter</small>
<small>Using AltoRouter</small>
Rewrite all requests to AltoRouter
</h1>

Expand Down Expand Up @@ -34,10 +34,10 @@ <h4>Nginx <code>nginx.conf</code></h4>
$router->setBasePath('/alto-app/');
{% endhighlight %}

<p>You are now ready to start <a href="/usage/mapping-routes.html">mapping your routes</a>.</p>
<p>You are now ready to start <a href="{{ '/usage/mapping-routes.html' | relative_url }}">mapping your routes</a>.</p>

<p>
<a style="float:left;" href="/usage/install.html">&laquo; Installing AltoRouter</a>
<a style="float:right;" href="/usage/mapping-routes.html">Mapping routes &raquo;</a>
<a style="float:left;" href="{{ '/usage/install.html' | relative_url }}">&laquo; Installing AltoRouter</a>
<a style="float:right;" href="{{ '/usage/mapping-routes.html' | relative_url }}">Mapping routes &raquo;</a>
<br style="clear:both;">
</p>

0 comments on commit 6bd61a7

Please sign in to comment.