修改文件:/thinkphp/library/think/paginator/driver/Bootstrap.php原有分页不带省略<?php//+----------------------------------------------------------------------//|ThinkPHP[WECANDOITJUSTTHINK]//+------------------            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                            精选
                                                        
                            2018-01-29 20:29:30
                            
                                5084阅读
                            
                                                        
                                点赞
                            
                                                                             
                 
                
                             
         
            
            
            
            tp5之layui分页样式1.分页类路径:\thinkphp\library\think\paginator\driverLayui.php<?phpna            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-05-08 14:12:54
                            
                                157阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            1.在thinkphp/library/think/paginator/driver目录下新建文件Page.php注意命名空间和继承<?php
namespace think\paginator\driver;
use think\Paginator;
class Page extends Paginator
{
    public $rollPage=5;//分页栏每页显示的页数            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-04-25 06:42:38
                            
                                128阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            php报错PHP Warning:  require(): open_basedir restriction in effect. File(/home/wwwroot/xxx.com/vendor/autoload.php) is not within the allowed path(s): (/home/wwwroot/xxx.com/public/:/tmp/:/proc/) in /ho            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2018-11-20 09:52:00
                            
                                472阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            Windows版安装a)使用composer create-project topthink/think testTG,来安装thi            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-08-18 12:01:59
                            
                                253阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            ThinkPHP5 隐藏index.php问题 thinkphp模板输出cookie,session中…            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-07-09 15:08:24
                            
                                283阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            混杂模式        $where = [];        array_push($where, 'create_user_id=4 or create_user_id=17');        array_push($where, 'province like "山%"');        $where['city'] = array('=', '济南');        ...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-08-13 01:01:54
                            
                                494阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            Thinkphp5学习笔记 架构 Thinkphp5目录架构 thinkphp 应用部署目录 ├─application 应用目录(可设置) │ ├─common 公共模块目录(可更改) │ ├─index 模块目录(可更改) │ │ ├─config.php 模块配置文件 │ │ ├─common ...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-09-08 11:44:00
                            
                                435阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            配置tp5 API 在application下配置route use think\Route;Route::domain('域名','文件夹'); 文件夹下的route内添加 use think\Route;Route::domain('域名','文件夹'); 例如: https://api.tes ...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-08-08 16:12:00
                            
                                267阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            // 同tp3的getField$result = User::where('status',1)->column('id,name,age', 'id');可以使用column            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-06-17 12:23:56
                            
                                612阅读
                            
                                                                             
                 
                
                             
         
            
            
            
               'session'                => [
       'id'             => '',
       // SESSION_ID的提交变量,解决flash上传跨域
       'var_session_id' => '',
       // SESSION 前缀
       'prefix'         => 'think',
       // 驱动方式 支持redis memcache memcached
       'type'           => 're            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2017-05-16 21:07:13
                            
                                2270阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            使用事务处理的话,需要数据库引擎支持事务处理。比如 MySQL 的 MyISAM 不支持事务处理,需要使用 InnoDB 引擎。 使用 transaction 方法操作数据库事务,当发生异常会自动回滚,例如: 自动控制事务处理 也可以手动控制事务,例如:
                    
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-05-15 11:03:58
                            
                                114阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            thinkphp5 left join 一、总结 1、作用:left join就是即使不匹配也返回左表中的数据 2、join使用通式:object join ( mixed join [, mixed $condition = null [, string $type = 'INNER']] ) 弄            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2018-05-04 15:59:00
                            
                                673阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            thinkphp5内置标签 知道内置标签怎么用,查手册的时候好查 却功能的时候在里面找着来用 内置标签一览 记住名字是内置标签,然后找的时候好找,这些都是在视图或者模板页面调用 volist 这是标签的属性都是双引号,就是写在html页面的东西,双引号 比较标签 实例 if标签            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2018-04-16 23:27:00
                            
                                221阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            首先,要导入request包:use think\Request;thinkphp5 有三种方式获取 request// 第一种方式:Request::instance();public function getRequest2(){    // use think\Request;    $request = Request::instance();    return dum...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-01-09 17:45:59
                            
                                809阅读