5 篇
建站知识总结与分享
搜索“strict”
PHP中申明 declare(strict_types=1)的作用
web 0 0
1168 0 2021-12-14 PHP
PHP中申明 declare(strict_types=1)的作用:  strict_types=1 及开启严格模式.默认是弱类型校验.具体严格模式和普通模式的区别见下面代码. code1: <?php declare(strict_types=1); function foo():int{ re...
解决宝塔Warning: require(): open_basedir restriction in effect
web 0 0
1885 0 2020-12-14 宝塔
处理完之后,一定要重启php服务 thinkphp部署在宝塔上,提示 Warning: require(): open_basedir restriction in effect 直接修改网站设置,网站目录里的防跨站攻击,取消打勾,重启网站就正常了。
thinkphp5.1链式操作strict
web 0 0
2397 0 2019-01-09 ThinkPHP5.1
<?php namespace app\index\model; use think\Model; use think\Db; class Articles extends Model { /** * 链式操作-strict方法用于设置是否严格检查字段名 */ public function strict(){ //...
thinkphp5.1添加数据
web 0 0
2299 0 2019-01-07 ThinkPHP5.1
<?php namespace app\index\model; use think\Db; class Articles { /** * 添加一条数据 * insert 方法添加数据成功返回添加成功的条数,通常情况返回 1 */ public function insert(){ $data = ['arti...
missing "use strict" statement
web 2 2
4424 0 2018-06-09 JavaScript
js函数在dreamweaver中提示错误missing "use strict" statement 经网上查找需要在js文件顶部加上"use strict".,注意不是"use strict"也不是"use strict";,是后面有个点. 然后dreamweaver的错误提示就消失了,不知道这样能不能用。 ...
关于本站

“最难不过坚持”

本人承接扒站仿站,php网站维护,病毒查杀,网站编辑,网站改版,html制作

有需要网站维护,改版,病毒查杀,网站编辑,网站备案,html制作等相关的工作可以联系我。
本人有多年相关工作经验,也可提供免费咨询,交个朋友。
有需要探讨问题的朋友,也可以加我微信,共同探讨!
微信:15011482830 QQ:408917339

6456075 2613 39
最新评论
https://jueru.net/
评 留言
:weixiao:
评 留言
:shuijiao: :weiqu: :zhenbang: :leng:
评 留言
:yiwen: :yiwen: :yiwen: :yiwen:
评 EasySass: could not generate CSS file. See Output panel for details.
这个业务逻辑多少都有点奇怪了,阅读浏览次数增值在新闻详情页的控制器方法里setInc,这怎么还写进模型事件里了。如果非要用onAfterRead也可以,把新闻文章的内容单独分出来一个news_content表,然后把它和news做关联,然后给news_content表的onAfterRead事件做增值处理,这样点进新闻页内查询到文章内容时才会触发它。
评 TP6模型事件-查询后onAfterRead不好用
文章标签更多
ThinkPHP (254)
Mysql (58)
DedeCms (33)
jQuery (67)
证件照 (1)
setInc (4)
setDec (4)
onclick (5)