Thinkphp6教程1:安装、开启多应用模式

Thinkphp6安装

thinkphp6必须安装composer才能安装,命令:

composer create-project topthink/think demo

Thinkphp开启多应用

  1. 刪除app目录下所有其他文件
  2. 安装多应用模式扩展
composer require topthink/think-multi-app
  1. 创建前台、后台及公共应用
php think build index
php think build admin
php think build common

需要注意的是,注意:如果没有安装think-multi-app, 使用php think build xx会报错:Command "build" is not defined.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。