
Thinkphp
PC712
日日行,不怕千万里;时时学,不怕千万卷
展开
-
TP5配置database.php使用多个数据库
TP5配置使用多个数据库方法1、修改database.php<?php// +----------------------------------------------------------------------// | ThinkPHP [ WE CAN DO IT JUST THINK ]// +-----------------------------------...原创 2018-07-23 12:29:48 · 7832 阅读 · 2 评论 -
TP5 Fatal error: Class 'think\Route' not found
1、使用验证码了时:使用Composer安装think-captcha扩展包:composer require topthink/think-captcha报错:Fatal error: Class 'Route' not found in D:\WWW\JVS\tp5\vendor\topthink\think-captcha\src\helper.php on line 12...原创 2018-07-26 16:14:10 · 13721 阅读 · 8 评论 -
TP5图片加水印(图片水印和文字水印)
TP5使用加水印功能(加图片水印和文字水印)由于项目需要图片加水印,正好使用TP5框架,下面记录一下使用方法: 1、安装扩展使用Composer安装ThinkPHP5的图像处理类库:composer require topthink/think-image 2:、使用: /** * 图片加水印 文字水印和图片水印 \think\Image类添加tile...原创 2018-07-30 15:29:19 · 11323 阅读 · 2 评论 -
TP5多条件查询
TP5中一个where使用多个条件 public function result() { checkLogin(); $userId = session('userId'); //获取session //查询条件1 $type = input('post.type'); ...原创 2018-08-11 12:44:26 · 2942 阅读 · 0 评论 -
TP5使用predis
1、安装composer require predis/predis2、使用use ...;use Predis\Client;-----------------------------------------------class Index{ /* * 使用predis */ public function index() {...原创 2019-01-29 14:28:09 · 2002 阅读 · 0 评论