私人领地

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

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

 

默认目录结构

 

 

 完整目录结构

 

 

 

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

 

posted @ 2020-04-08 11:58  狂奔的蜗牛Snails  阅读(1800)  评论(0编辑  收藏  举报