安装tp6:
1.https://getcomposer.org/download/ 下载安装Composer-Setup.exe
需要注意选择phpstudy安装目录php相应版本的目录,安装完成,在命令窗口执行composer 命令
2. 设置 Composer 下载源:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
3. 进入到项目www下: 如:E:\WWW
4.https://getcomposer.org/download/ 可以查看最新版本
composer create-project topthink/think tp6 6.0.*-dev
5.https://blog.csdn.net/wangtianyou343/article/details/103576493
安装多应用模块
composer require topthink/think-multi-app
安装视图:https://blog.csdn.net/haibo0668/article/details/103774179
composer require topthink/think-view
config/view.php 设置模板路径
‘tpl_replace_string‘ => [ ‘__STATICBASE__‘=>‘/static/base‘, ‘__STATICADMIN__‘=>‘/static/admin‘, ‘__STATICHOME__‘=>‘/static/home‘, ‘__STATICMOBILE__‘=>‘/static/mobile‘, ]
再删除runtime文件夹
安装验证码Captcha:composer require topthink/think-captcha
composer require liliuwei/thinkphp-jump
TP6 页面跳转success(),重定向redirect(),错误提示error(),result() 问题解决:
https://blog.csdn.net/weixin_44535476/article/details/103314722