当我尝试从 到 路由时,我很localhost/admin
困惑localhost/index.php/admin
localhost/index.php/admin
- 这个链接工作正常。
我努力了:
$route['admin'] = 'index.php/admin';
$route['default_controller'] = 'front';
localhost/index.php/front
当我打开localhost
它时工作正常显示无法正常工作的首页。
我在这个例子中使用了 CodeIgniter HMVC。
我添加了额外的代码,因为它不允许我发布问题。