干货,干货,纯干货!
1,安装thinkphp6
稳定版:composer create-project topthink/think tp 开发版:composer create-project topthink/think=6.0.x-dev tp
2,安装多模块
composer require topthink/think-multi-app
3,安装模版引擎
composer require topthink/think-view
4,创建模块
php think build admin
5,运行
php think run
5,测试
在admin模块下创建Test类
class Test{
public function index(){
return 'index';
}
}