3
$route['segment1/(:any)/(:any)'] = "myController/$1/$2";
,我將不得不鏈接SEGMENT1 /的someMethod/someParam,但如果我沒有在網址參數,我需要這樣寫:笨路由段/在這種情況下PARAMS
$route['segment1/(:any)'] = "myController/$1";
$route['segment1/(:any)/(:any)'] = "myController/$1/$2";
因此這兩種情況現在都可以工作,所以問題是:我可以一次性寫出這兩行代碼嗎?