11 2022 档案

摘要:hasone 一对一 正向关联:在主表模型中写与副表的关联方法 表结构 user_basic 副表 uid,name,city,idcard user 主表 uid,name,lastLogintime UserModel //foreignKey 外键 指的是 UserBasic 表与user表对 阅读全文
posted @ 2022-11-20 22:59 IUser 阅读(86) 评论(0) 推荐(0) 编辑
摘要:文章原文 : 这里主要做记录 https://www.cnblogs.com/zhangcheng001/p/12143585.html 无限级分类 public static function getList(pid = 0, &result = [], $blank = 0) { $res 阅读全文
posted @ 2022-11-18 09:44 IUser 阅读(26) 评论(0) 推荐(0) 编辑
摘要:Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index. 阅读全文
posted @ 2022-11-17 09:51 IUser 阅读(30) 评论(0) 推荐(0) 编辑
摘要:tp6 设置简单报错 env 文件设置 APP_DEBUG = false config/app.php 文件设置 // 显示错误信息 'show_error_msg' => true, 阅读全文
posted @ 2022-11-12 10:01 IUser 阅读(48) 评论(0) 推荐(0) 编辑
摘要:<?php //针对参数类型开启严格模式,进行数据类型检验 declare (strict_types = 1); namespace app\validate; use think\Validate; class User extends Validate { //定义规则 protected $ 阅读全文
posted @ 2022-11-09 19:58 IUser 阅读(233) 评论(0) 推荐(0) 编辑
摘要:phpstorm 设置web浏览器和预览 然后在终端中输入 php think run -H api.tp6.com(指定域名) php think run 也是可以的 然后双击网址即可在谷歌浏览器中看到 阅读全文
posted @ 2022-11-07 14:27 IUser 阅读(576) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示