用thinkphp6初始化一个项目
composer安装tp6框架
composer create-project topthink/think tp6
tp6这个名字可以随意改动 添加多应用模式
composer require topthink/think-multi-app
添加视图,模板引擎
composer require topthink/think-view
命令行添加一个应用
php think build index
命令行生成index应用的Blog控制器类库文件
php think make:controller index@Blog
生成模型
php think make:model index@Blog
命令清除缓存
php think clear
win下phpstudy隐藏index.php文件,要在htaccess文件里/index.ph前面加个?
添加权限类
composer require zhenhaihou/think-auth