controller 添加paramter解析
parent
39d74fb001
commit
764bb84505
|
@ -22,7 +22,7 @@ $router = new Core\Router();
|
||||||
// Add the routes
|
// Add the routes
|
||||||
$router->add('', ['controller' => 'Home', 'action' => 'index']);
|
$router->add('', ['controller' => 'Home', 'action' => 'index']);
|
||||||
$router->add('{controller}/{action}');
|
$router->add('{controller}/{action}');
|
||||||
$router->add('{controller}/{action}/{paramater}');
|
$router->add('{controller}/{action}/{id:.+}');
|
||||||
|
|
||||||
$router->AddPrefix(\App\Config::ROUTE_PREFIX);
|
$router->AddPrefix(\App\Config::ROUTE_PREFIX);
|
||||||
try{
|
try{
|
||||||
|
|
Loading…
Reference in New Issue