开启多应用模式
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.

 

默认目录结构

Thinkphp6笔记二:开启多应用模式

 

 

 完整目录结构

Thinkphp6笔记二:开启多应用模式

 

 

 

如果目录不同,需要手动创建文件夹/文件。

 

相关文章:

  • 2022-01-29
  • 2021-11-28
  • 2021-06-04
  • 2021-07-23
  • 2022-02-26
  • 2021-10-20
  • 2021-08-30
  • 2022-01-03
猜你喜欢
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2021-11-28
  • 2021-05-22
  • 2022-12-23
  • 2021-11-11
相关资源
相似解决方案