1
我在我的CI web應用程序中找到頁面未找到錯誤 我有3個單獨的子文件夾,其中包含管理員,站點,成員的控制器。結構看起來像這樣。在codeigniter中使用子文件夾導致問題
- Controllers
--- Site
----- site.php <-- handles all general site pages
--- Members
----- dashboard.php <-- default controller to be called when no parameter is passed
----- products.php <-- handles all products request
--- Admin
---- dashboard.php <-- default controller to be called when no parameter is passed
---- members.php <-- handles all members request
我試圖路由,在routes.php文件文件中像這樣
// Admin - folder/controler/Method
$route['admin/(:any)'] = 'admin/admin/$1';
$route['admin'] = 'admin/dashboard/index';
$route['clients/(:any)'] = 'clients/$1';
$route['clients'] = 'clients/dashboard/index';
$route['(:any)'] = 'site/$1';
$route['default_controller'] = 'site/index';
$route['404_override'] = '';
我該怎麼辦,以解決這一問題?