但是实际测试,我建一个 控制器文件 IndexTest.php

TP5 控制器命名大小写问题

 

 

// 关闭URL中控制器和操作名的自动转换
'url_convert' => false,
一旦关闭自动转换,URL地址中的控制器名就变成大小写敏感了,例如前面的访问地址就要写成:

http://localhost/index.php/Index/BlogTest/read
下面的URL访问则无效:

http://localhost/index.php/Index/blogtest/read


参考地址:https://www.kancloud.cn/manual/thinkphp5/118012

 

相关文章:

  • 2021-09-29
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-08-20
  • 2021-12-17
  • 2022-02-05
  • 2022-12-23
相关资源
相似解决方案