0
您好我如何添加可选参数上的代码点火器的PHP路由可选CodeIgniter的路由参数使用动态控制器
$route['api/v1/(:any)'] = "$1/index";
$route['api/v1/(:any)/(:any)'] = "$1/index/$2";
例如的网址:
app.domain。 com/api/v1 /用户拨打电话$users->index()
app.domain.com/api/v1/users/1 call $users->index(1)
我需要TGE路线是动态的$route['api/v1/(:any)']