controller 添加paramter解析

deploy
caiyuzheng 2019-08-26 14:34:52 +08:00
parent 39d74fb001
commit 764bb84505
1 changed files with 1 additions and 1 deletions

View File

@ -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{