发布于 2016-02-18 16:03:18
由于xkcd149与这个答案的链接,我发现更改码器3中的路由,以便您始终通过CI根控制器,应该如下所示:
论/application/config/routes.php
$route['default_controller'] = 'home'; //can have any name you want
$route['exampleUrl'] = 'home';
$route['anotherUrl/(:any)'] = 'home'; //this url passes a parameter
$route['anotherUrl/(:any)/(:any)'] = 'home'; //this one passes 2 parameters希望这能帮上忙。
https://stackoverflow.com/questions/35485117
复制相似问题