![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
THINKPHP5
2018SZ
2018即将踏上新的征程,加油!
展开
-
fastadmin安装
克隆FastAdmin到你本地git clone https://gitee.com/karson/fastadmin.git 进入目录cd fastadmin 下载前端插件依赖包bower install 下载PHP依赖包composer install 一键创建数据库并导入数据php think install -u 数据库用户名 -p 数据库密码 添加虚拟主机并绑定到fastadm...原创 2019-12-25 10:44:16 · 447 阅读 · 0 评论 -
TP5单入口绑定多模块
// 定义应用目录define('APP_PATH', __DIR__ . '/../app/');require __DIR__ . '/../thinkphp/base.php';// 加载框架基础文件//开启域名部署后switch ($_SERVER['HTTP_HOST']) { case 'www.xxxx.com': $model = 'home';/转载 2017-12-25 09:05:37 · 9574 阅读 · 0 评论 -
TP5设置404
在 config.php 文件里面加'http_exception_template' => [ // 定义404错误的重定向页面地址 404 => APP_PATH.'404.html', // 还可以定义其它的HTTP status 401 => APP_PATH.'401.html', ],404页面 放在 ap...原创 2018-03-06 09:46:25 · 4834 阅读 · 0 评论