当前位置:网站首页>thinkphp6 多级控制器目录访问解决方法
thinkphp6 多级控制器目录访问解决方法
2022-06-28 13:08:00 【生命不止、战斗不息】
thinkphp6 二级控制器目录访问
tp6的 controller 目录下面再新建一个文件夹,不使用路由的情况下 怎么访问,本文主要记录解决这个问题的办法。
类似于这种目录结构。在不使用路由的情况下,配置关闭路由。
目录结构如下:

路由访问的时候会将api目录当成控制器:

解决方式:
1.第一种是按照官网的方式,进行路由定义控制器定义 · ThinkPHP6.0完全开发手册 · 看云

效果:
原来的

现在的

就可以进行访问了:

边栏推荐
- You must configure either the server or JDBC driver (via the ‘serverTimezone‘ configuration property
- 一文搞懂leveldb写操作
- Jerry's wif interferes with Bluetooth [chapter]
- 无心剑英译朱熹《观书有感二首·其一》
- Mature case and source code of hash quiz game system development technology
- plt. Usage of savefig() and save path
- Embedded development: seven techniques for estimating battery life
- Electronic components distribution 1billion Club [easy to understand]
- The press conference of Tencent cloud Database & CSDN engineer's ability lightweight certification is coming
- pytorch主要模块
猜你喜欢

移动Web实训DAY-2

manjaro easyconnecy报错:libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

How to find opportunities in a bear market?

全志V853芯片 如何在Tina V85x平台切换sensor?

FS7022方案系列FS4059A双节两节锂电池串联充电IC和保护IC

Setup and upload of arduino-esp32 flash file plug-in program

Deep understanding of Bayes theorem
JS class 并不只是简单的语法糖!

##测试bug常用“Redmine”

Flutter series part: detailed explanation of GridView layout commonly used in flutter
随机推荐
The counter attack story of Fu Jie, a young secondary school student: I spent 20 years from the second undergraduate to the ICLR outstanding Thesis Award
词云的可视化设计教程
CodeBlocks MinGW installation configuration problem
Vscode如何设置自动保存代码
Digital twin energy system, creating a "perspective" in the low-carbon era
从pdb源码到frame帧对象
认识启动函数,找到用户入口
I ² C. SMBus, pmbus relationships
5A同步整流芯片 20V转12V2A/5V4.5A大电流 24W大功率同步整流芯片 大电流降压IC FS2462
mysql数据库扫盲,你真的知道什么是数据库嘛
投资98万美元的Saas项目失败了
Tencent has confirmed that QQ has stolen numbers on a large scale, iphone14 has no chance of type-C, and 5g, the fourth largest operator, has officially released numbers. Today, more big news is here
《天天数学》连载53:二月二十二日
海思35xx实现GT911触摸屏功能「建议收藏」
How does Quanzhi v853 chip switch sensors on Tina v85x platform?
Vscode shortcut key
Setup and upload of arduino-esp32 flash file plug-in program
Align content attribute in flex layout
全志V853芯片 如何在Tina V85x平台切换sensor?
一款自动生成单元测试的 IDEA 插件,开发效率提升 70% 以上!