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)']