当前位置:网站首页>thinkphp6 多级控制器目录访问解决方法
thinkphp6 多级控制器目录访问解决方法
2022-06-28 13:08:00 【生命不止、战斗不息】
thinkphp6 二级控制器目录访问
tp6的 controller 目录下面再新建一个文件夹,不使用路由的情况下 怎么访问,本文主要记录解决这个问题的办法。
类似于这种目录结构。在不使用路由的情况下,配置关闭路由。
目录结构如下:
路由访问的时候会将api目录当成控制器:
解决方式:
1.第一种是按照官网的方式,进行路由定义控制器定义 · ThinkPHP6.0完全开发手册 · 看云
效果:
原来的
现在的
就可以进行访问了:
边栏推荐
- ##测试bug常用“Redmine”
- Centos6.5 php+mysql MySQL library not found
- 4年用户数破亿,孙哥带领波场再创新高
- Electronic components distribution 1billion Club [easy to understand]
- manjaro easyconnecy报错:libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
- Deep understanding of Bayes theorem
- Tencent tangdaosheng: facing the new world of digital and real integration, developers are the most important "architects"
- 泛海微FH511单片机IC方案小家电LED照明MCU丝印FH511
- Elastic box auto wrap demo
- The press conference of Tencent cloud Database & CSDN engineer's ability lightweight certification is coming
猜你喜欢
Fs7022 scheme series fs4059a dual two lithium battery series charging IC and protection IC
flex布局中的align-content属性
[today in history] June 28: musk was born; Microsoft launches office 365; The inventor of Chua's circuit was born
Go language learning notes - Gorm usage - database configuration, table addition | web framework gin (VII)
Vscode如何设置代码保存后自动格式化
How does Quanzhi v853 chip switch sensors on Tina v85x platform?
JS class is not just a simple syntax sugar!
词云的可视化设计教程
The $980000 SaaS project failed
Mobile web training day-2
随机推荐
Electronic components distribution 1billion Club [easy to understand]
PHP gets the number of digits and replaces it with the specified mantissa
$100000 AI competition: the task of finding "worse" big models
开源项目维权成功案例: Spug 开源运维平台成功维权
Buuctf:[wustctf2020] plain
The difference between align items and align content
How to handle the safest account opening when downloading the mobile app of Huatai Securities
【云原生】自助报表和BI能做这么多事?
FS7022方案系列FS4059A双节两节锂电池串联充电IC和保护IC
无心剑英译朱熹《观书有感二首·其一》
数据分析-启动子进化分析
You must configure either the server or JDBC driver (via the ‘serverTimezone‘ configuration property
华泰证券手机app下载 怎么办理开户最安全
《天天数学》连载53:二月二十二日
Align content attribute in flex layout
Manjaro easyconnecy error: libgtk-x11-2.0 so. 0: cannot open shared object file: No such file or directory
RK3399平台开发系列讲解(使用篇)Pinctrl子系统的介绍 - 视频介绍
flink核心之watermarker
泛海微FH511单片机IC方案小家电LED照明MCU丝印FH511
自定义MySQL连接池