会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Cyber的博客
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
15
下一页
2020年12月4日
TP5.1 控制器(基类)
摘要: 直接上代码 <?php /** * Created by PhpStorm. * User: Zhangyongfeng * Date: 2020/12/1 * Time: 11:31 * * ━━━━━━━━━神兽出没━━━━━━━━━ * * ┏┓ ┏┓+ + * ┏┛┻━━━┛┻┓ + + *
阅读全文
posted @ 2020-12-04 17:07 Cyber_nnno
阅读(379)
评论(0)
推荐(0)
2020年12月2日
tp5.1 微信支付、支付宝、招商支付(Payment)
摘要: 插件合集 点击跳转 源地址 https://github.com/helei112g/payment 安装 当前 Payment 项目仅支持 PHP version > 7.0 的版本,并且仅支持通过 composer 进行安装。 需要 PHP 安装以下扩展: - ext-curl - ext-mb
阅读全文
posted @ 2020-12-02 17:19 Cyber_nnno
阅读(1247)
评论(11)
推荐(0)
TP5.1 发送邮件
摘要: 插件合集 点击跳转 安装 composer require phpmailer/phpmailer 配置 QQ邮箱 --> 设置 --> 账户 --> 往下拉 --> 打开它 直接上代码 <?php /** * Created by PhpStorm. * User: Zhangyongfeng *
阅读全文
posted @ 2020-12-02 15:35 Cyber_nnno
阅读(327)
评论(0)
推荐(0)
tp5.1 模型集成
摘要: 基类 在application目录的model中新建Base基类 直接上代码 <?php /** * Created by PhpStorm. * User: Zhangyongfeng * Date: 2020/12/1 * Time: 11:32 * * ━━━━━━━━━神兽出没━━━━━━━
阅读全文
posted @ 2020-12-02 13:30 Cyber_nnno
阅读(237)
评论(0)
推荐(0)
TP5.1 阿里云短信
摘要: 插件合集 点击跳转 安装 composer require alibabacloud/sdk 后台 <?php /** * Created by PhpStorm. * User: Zhangyongfeng * Date: 2020/11/24 * Time: 13:57 * * ━━━━━━━━
阅读全文
posted @ 2020-12-02 13:07 Cyber_nnno
阅读(470)
评论(0)
推荐(0)
2020年11月16日
Apache 伪静态
摘要: RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /in
阅读全文
posted @ 2020-11-16 09:04 Cyber_nnno
阅读(213)
评论(0)
推荐(0)
2020年11月14日
TP5.1 自动生成API文档(注释)
摘要: 安装 在phpstorm中请求一直报错,只能老老实实在项目文件夹cmd了 composer require okcoder/think5-apidoc dev-master 配置 官方文档说会在config目录里自动生成okcoder_doc.php,我的没有,只能自己创建了 <?php /** *
阅读全文
posted @ 2020-11-14 14:23 Cyber_nnno
阅读(1473)
评论(0)
推荐(0)
2020年11月13日
Nginx伪静态
摘要: try_files $uri $uri/ /exploit/index.php?$query_string; if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; }
阅读全文
posted @ 2020-11-13 16:39 Cyber_nnno
阅读(115)
评论(0)
推荐(0)
TP5.1 使用websocket实现聊天功能(windows环境)
摘要: 核心类(用到了模型) <?php /** * Created by PhpStorm. * User: Administrator * Date: 2020/11/11 * Time: 16:37 */ namespace app\common\controller; use app\model\C
阅读全文
posted @ 2020-11-13 13:03 Cyber_nnno
阅读(2707)
评论(4)
推荐(1)
2020年9月30日
Pormise
摘要: 定义 promise是一个对象,对象和函数的区别就是对象可以保存状态,函数不可以(闭包除外) 并未剥夺函数return的能力,因此无需层层传递callback,进行回调获取数据 代码风格,容易理解,便于维护 多个异步等待合并便于解决 操作 new Promise( function (resolve
阅读全文
posted @ 2020-09-30 10:53 Cyber_nnno
阅读(343)
评论(0)
推荐(1)
上一页
1
2
3
4
5
6
7
8
9
10
···
15
下一页
公告