多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 安装tp6.0 ## 操作步骤:      1. git bash到要安装的地方      2. 执行命令: composer create-project topthink/think tp6 ## 出现的错误:      \[InvalidArgumentException\]   Could not find package topthink/think with stability stable. ## 解决方案: 删除之前的镜像:composer config -g --unset repos.packagist ## 结果: 报错解决,可以正常安装tp6.0框架,TP5有时也生效! ## 伪静态: /public/.htaccess ``` <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule> -------------- location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } } ```