我有這條路線定義在routes.php $route['user'] = "user_controller";
。用戶控制器有一個方法logout()
但是當我嘗試這個URI user/logout
我得到一個404以同樣的方式,當我使用這個URI user/index
我得到一個404CodeIgniter:瞭解路線
routes.php文件
// custom routes
$route['start'] = "start_controller";
$route['register'] = "register_controller";
$route['user'] = "user_controller";
// other routes
$route['default_controller'] = "start_controller";
$route['404_override'] = '';