tp5.1已经支持json字段查询了tp5.0还不支持,只能使用
原创
2022-08-18 12:30:16
148阅读
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
428阅读
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阅读
自己写的权限管理,大致思路:用户登陆成功之后,查出该用户的权限列表,并把权
原创
2023-04-26 10:40:00
272阅读
php上手超快的框架querylist4文档地址:https://querylist.cc/docs/guide/v4/installation安装tp5.1,composer命令安装 composer create-project topthink/think tp5安装querylist4(环境php>7.0 )composer require jaeger/query
原创
2022-08-18 12:25:36
113阅读