From 764bb8450546e18b5553b7fca3d9c46015e63e0d Mon Sep 17 00:00:00 2001 From: caiyuzheng <290198252@qq.com> Date: Mon, 26 Aug 2019 14:34:52 +0800 Subject: [PATCH] =?UTF-8?q?controller=20=20=E6=B7=BB=E5=8A=A0paramter?= =?UTF-8?q?=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 8d3eca0..bf46763 100644 --- a/public/index.php +++ b/public/index.php @@ -22,7 +22,7 @@ $router = new Core\Router(); // Add the routes $router->add('', ['controller' => 'Home', 'action' => 'index']); $router->add('{controller}/{action}'); -$router->add('{controller}/{action}/{paramater}'); +$router->add('{controller}/{action}/{id:.+}'); $router->AddPrefix(\App\Config::ROUTE_PREFIX); try{