首页
Dart
Flutter
Python
FastApi
PHP
Laravel
Thinkphp
JavaScript
Vue
TypeScript
autojs
Android
java
C/C++
Kotlin
SQL
Mysql
Linux
Kali Linux
Docker
Shell
其他
本站功能使用教程
常用网站收录
提问的智慧
Google翻译镜像站
本站同款主题
写文章
登录
首页
Dart
Flutter
Python
FastApi
PHP
Laravel
Thinkphp
JavaScript
Vue
TypeScript
autojs
Android
java
C/C++
Kotlin
SQL
Mysql
Linux
Kali Linux
Docker
Shell
其他
本站功能使用教程
常用网站收录
提问的智慧
Google翻译镜像站
本站同款主题
登录
找回密码
PHP
第2页
一种服务器端脚本语言,适合开发网站和动态网页,语法简单,内置丰富函数,是许多网站后台(如 WordPress)的基础。
排序
更新
浏览
点赞
评论
PHP,Dart,Java 面向对象对比
继承: 抽象类: 接口: 这是我自己理解的看看就可以了。
趙哥
3年前
0
327
10
thinkphp6 App类的使用
dump($this->app->getThinkPath());//获取核心框架目录 dump($this->app->getRootPath());//获取应用根目录 dump($this->app->getBasePath());//获取应用基础目录 dump($this...
# PHP
# thinkphp6.0
趙哥
3年前
0
178
12
thinkphp6 Filesystem文件系统类的使用
config/filesystem.php配置文件中配置上传根目录及上传规则,例如: return [ 'default' => 'local', 'disks' => [ 'local' => [ 'type' => 'local', 'root' => app()->getRu...
# PHP
# thinkphp6.0
趙哥
3年前
0
2095
6
thinkphp6 数据库和模型代码智能提示
前言: 自thinkphp5.1之后,ThinkPHP6 Db和模型方法提示消失,如何修复?让我们来看看如何修复提高我们开发效率。 DB数据库提示修复: 代码替换位置:第23行以下注释内容 代码: /** * Class Db...
# PHP
# thinkphp6.0
趙哥
3年前
0
371
13
thinkphp6.0 多语言
1.如果要开启多语言切换功能,中间件定义文件 middleware.php 开启; // 多语言加载 \think\middleware\LoadLangPack::class, 2. 配置文件在 config/lang.php 文件,默认设置的是 zh-cn 中文语...
# PHP
# thinkphp6.0
趙哥
3年前
0
714
7
thinkphp6.0 上传功能
如果要实现上传功能,首先需要建立一个上传表单,具体如下:<form action='http://localhost/tp6/public/upload' enctype='multipart/form-data' method='post'> <input type='file' n...
# PHP
# thinkphp6.0
趙哥
3年前
0
845
13
thinkphp6.0 缓存功能
系统内置了很多类型的缓存,除了 File,其它均需要结合相关产品; 我们这里主要演示 File 文本缓存,其它的需要学习相关产品; 配置文件 cache.php 进行缓存配置,默认生成在 runtime/cache 目...
# PHP
# thinkphp6.0
趙哥
3年前
0
741
7
thinkphp6.0 cookie
Cookie 是客户端存储,默认情况下是开启初始化的,在 config/cookie.php: ::set()方法,创建一个最基本的 cookie,可以设置前缀、过期时间、数组等; Cookie::set('user', 'Mr.Lee'); //临时保...
# PHP
# thinkphp6.0
趙哥
3年前
0
588
15
thinkphp6.0 Session
Session 是服务端存储,在使用 Session 之前,需要开启初始化,在中间件文件 middleware.php; // Session 初始化 \think\middleware\SessionInit::class TP6.0 不支持原生$_SESSION 的获取方式...
# PHP
# thinkphp6.0
趙哥
3年前
0
486
10
thinkphp6.0 代码报错集 [收集各种报错解决方法]
报错代码:Call to undefined method think\Db::table() 解决方法:要引入文件use think\Facade\Db;
# PHP
# thinkphp
趙哥
3年前
0
258
14
加载更多
在手机上浏览此页面
登录
手机号或邮箱
验证码
发送验证码
记住登录
账号密码登录
登录
用户名/手机号/邮箱
登录密码
记住登录
找回密码
|
免密登录
登录