Thinkphp6安裝
thinkphp6必須安裝composer
才能安裝,命令:
composer create-project topthink/think demo
Thinkphp開啟多應用
- 刪除
app
目錄下所有其他文件 - 安裝多應用模式擴展
composer require topthink/think-multi-app
- 創(chuàng)建前臺筒主、后臺及公共應用
php think build index
php think build admin
php think build common
需要注意的是关噪,注意:如果沒有安裝think-multi-app
, 使用php think build
xx會報錯:Command "build" is not defined
.