mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 15:15:35 +08:00
initial 2.0.0-a3 commit
This commit is contained in:
@@ -25,7 +25,15 @@ $route = new Route(
|
||||
|
||||
// ...
|
||||
|
||||
$routes->add('date', $route);
|
||||
$routes->add('date', new Route(
|
||||
'/archive/{month}', // path
|
||||
array('controller' => 'showArchive', 'asd' => 'feswf'), // default values
|
||||
array('month' => '[0-9]{4}-[0-9]{2}', 'subdomain' => 'www|m'), // requirements
|
||||
array(), // options
|
||||
'', // host
|
||||
array(), // schemes
|
||||
array() // methods
|
||||
));
|
||||
|
||||
$route = new Route('/archive/test');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user