简体   繁体   English

当我使用路由 php 页面时,默认控制器不起作用

[英]Default controller is not working when I use route php page

I have a project in this project when my URL当我的 URL 时,我在这个项目中有一个项目

http://host/Bsheet_mvc/

Above is not working以上不起作用

$route['default_controller']        = 'Login';

http://host/Bsheet_mvc/index.php/login

When I use above it its working当我在它上面使用时它的工作

This project is made in CI code igniter .这个项目是在 CI 代码点火器中制作的。

This is case sensitive issue try this这是区分大小写的问题试试这个

    $route['default_controller'] = 'login';

'l' will be lower case 'l' 将是小写

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 CodeIgniter:当我在PHP中调用默认控制器时出现页面未找到问题? - CodeIgniter : page not found issue appear when i call default controller in Php? 当我将默认控制器更改为新控制器时,页面上出现404错误 - 404 error on page when I change default controller to new controller 当我已经在我的 Web.php 中定义了资源 Controller 时,没有定义路由 [controller.create] - Route [controller.create] is not defined when I've already defined the Resource Controller in my Web.php 参数传递给默认操作时路由不起作用 - Route not working when parameter passed to default action CodeIgniter 4 只有默认路由 / 可访问,如果我在我的 Routes.php 中定义,则没有其他路由有效。 我正在使用 ubuntu - CodeIgniter 4 Only default route / is accessible, no other route is working if i define in my Routes.php. I am using ubuntu 当我使用 GET 变量使用 php 将数据传递到另一个页面时,Onclick function 不起作用 - Onclick function is not working when i use GET variable to pass data to another page using php 使用默认路由访问其他控制器时,“在AppController中未定义操作”错误 - “Action not defined in AppController” error when accessing a different controller with default route PHP-Zend_Controller_Router_Route_Regex不起作用 - php - Zend_Controller_Router_Route_Regex not working Laravel到控制器的路由不起作用 - Laravel route to controller not working laravel 4 route :: controller not working - laravel 4 route::controller not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM