概述
1.安装多应用模式扩展
1.首先刪除app目录下所有其他文件
2.安装多应用模式扩展: composer require topthink/think-multi-app
3.创建三大应用index(前端),admin(后台),common(公共应用)php think build index php think build admin php think build common
注意:如果没有安装think-multi-app, 使用php think build xx会报错:Command "build" is not defined.
2.默认目录结构
![](https://file2.kaopuke.com:8081/files_image/2023062413/2bfa962508e86a818015906f8655f726.png)
3.完整目录结构
![](https://file2.kaopuke.com:8081/files_image/2023062413/30e40f50c977c5564bbf1662562c96ae.png)
最后
以上就是任性大叔为你收集整理的Thinkphp6笔记二:开启多应用模式的全部内容,希望文章能够帮你解决Thinkphp6笔记二:开启多应用模式所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复