1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-07-31 13:40:16 +02:00

updated basic example to match new folder structure

This commit is contained in:
Danny van Kooten
2014-03-10 12:09:57 +01:00
parent c3c166bd76
commit 4f8836e179

View File

@@ -1,9 +1,9 @@
<?php
require 'AltoRouter.php';
require '../../AltoRouter.php';
$router = new AltoRouter();
$router->setBasePath('/AltoRouter');
$router->setBasePath('/AltoRouter/examples/basic');
$router->map('GET|POST','/', 'home#index', 'home');
$router->map('GET','/users/', array('c' => 'UserController', 'a' => 'ListAction'));
$router->map('GET','/users/[i:id]', 'users#show', 'users_show');