mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-03-13 22:09:39 +01:00
updated basic example to match new folder structure
This commit is contained in:
parent
c3c166bd76
commit
4f8836e179
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user