mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-10 10:24:32 +02:00
fix internal links
This commit is contained in:
@@ -37,7 +37,7 @@ php composer.phar install
|
||||
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>
|
||||
@@ -47,6 +47,6 @@ require 'AltoRouter.php';
|
||||
{% endhighlight %}
|
||||
|
||||
<p>
|
||||
<a style="float:right;" href="/usage/rewrite-requests.html">Rewrite requests »</a>
|
||||
<a style="float:right;" href="{{ '/usage/rewrite-requests.html' | relative_url }}">Rewrite requests »</a>
|
||||
<br style="clear:both;">
|
||||
</p>
|
@@ -7,7 +7,7 @@ layout: default
|
||||
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 %}
|
||||
@@ -129,7 +129,7 @@ $router->addMatchTypes(array('cId' => '[a-zA-Z]{2}[0-9](?:_[0-9]++)?'));
|
||||
<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">« Rewriting requests</a>
|
||||
<a style="float:right;" href="/usage/matching-requests.html">Matching requests »</a>
|
||||
<a style="float:left;" href="{{ '/usage/rewrite-requests.html' | relative_url }}">« Rewriting requests</a>
|
||||
<a style="float:right;" href="{{ '/usage/matching-requests.html' | relative_url }}">Matching requests »</a>
|
||||
<br style="clear:both;">
|
||||
</p>
|
||||
|
@@ -51,7 +51,7 @@ array(3) {
|
||||
<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">« Mapping routes</a>
|
||||
<a style="float:right;" href="/usage/processing-requests.html">Processing requests »</a>
|
||||
<a style="float:left;" href="{{ '/usage/mapping-routes.html' | relative_url }}">« Mapping routes</a>
|
||||
<a style="float:right;" href="{{ '/usage/processing-requests.html' | relative_url }}">Processing requests »</a>
|
||||
<br style="clear:both;">
|
||||
</p>
|
@@ -35,6 +35,6 @@ if( is_array($match) && is_callable( $match['target'] ) ) {
|
||||
{% endhighlight %}
|
||||
|
||||
<p>
|
||||
<a style="float:left;" href="/usage/matching-requests.html">« Matching requests</a>
|
||||
<a style="float:left;" href="{{ '/usage/matching-requests.html' | relative_url }}">« Matching requests</a>
|
||||
<br style="clear:both;">
|
||||
</p>
|
@@ -34,10 +34,10 @@ $router = new AltoRouter();
|
||||
$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">« Installing AltoRouter</a>
|
||||
<a style="float:right;" href="/usage/mapping-routes.html">Mapping routes »</a>
|
||||
<a style="float:left;" href="{{ '/usage/install.html' | relative_url }}">« Installing AltoRouter</a>
|
||||
<a style="float:right;" href="{{ '/usage/mapping-routes.html' | relative_url }}">Mapping routes »</a>
|
||||
<br style="clear:both;">
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user